Treeplotter
A Python package for tree plotting. Wraps TreantJS and R's webshot package to render high-res tree visualizations.
Install / Use
/learn @Luke-Poeppel/TreeplotterREADME
treeplotter
Tree plotting is really hard in Python. The treeplotter package aims to make the process easier. It wraps the TreantJS library to plot trees and saves them to a rendered HTML file. This HTML file is then also exported to a high-res PNG by wrapping R's webshot package. The package requires some complicated installs, but this is the price to pay to not use any R, Javascript, or CSS ;)
Usage
This library has Node and Tree classes in the treeplotter.tree module. Node objects can store various items. We can then specify the node children and parents. A Tree is then defined by a root node. From this, we can create tree visualizations. See here for a complete demo.
This package is used in the decitala package (see here) to make FragmentTree diagrams, like the following one of the Greek Prosodic Feet:


Installation
The basic package can be installed with
$ pip3 install treeplotter
To create the tree diagrams, however, some additional installs are required. See here for the complete instructions.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
