Python package for tree plotting.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file treeplotter-0.5.0.tar.gz.
File metadata
- Download URL: treeplotter-0.5.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
facb79b2c987fa1664f153b27540cba064e7dd902c129983f9d7205b327d691f
|
|
| MD5 |
349ccad2ce0ae487ce22958d50796d8d
|
|
| BLAKE2b-256 |
09bbe49bbc695852c3a7d8fa0a41c202a0185a780743416075506038beea42ce
|