twyg (PyPI) is a JSON tree data visualizer, written in Python 2 by John Novak, currently 0.1.0 (2014-03-19).
It can render a JSON data into PNG, PDF, SVG, or PostScript using Cairo. Two rendering backends, Cairo and NodeBox1. 16 builtin great configurations with 32 colorschems, and you can extend by yourself with custom human-readable configuration language.
Here is a quick example of default settings:
Same JSON, change configuration to bubbles:
Change colorscheme to inca:
Another configuration tron:
You can see more examples of the builtin configurations and colorschemes on its website, and it’s documented very well.
Beside the configuration and colorscheme, twyg’s command-line options also provide options for DPI, margin, and scaling. The quality of the output is really one catching my eyes and you don’t even need to change anything, just feed into a JSON and you get the quality rendered output file.
Best of all, pip install --user twyg and seconds later, it’s ready to paint a tree.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.