I'm interested in drawing a treemap:
What is the easiest way to make one in Python? Is there a library that could produce such a graphic, given the proper input data?
There is a Treemap but it isn't in the python standard library.
Size distortion can happen when you need to show a greater number of pixels, where you can only optimize for size comparisons at one level of the hierarchy at a time. Usually, all the commercial treemap implementations used gutter borders to show the hierarchy clearly at the expense of size comparisons.
A Treemap diagram is an appropriate type of visualization when the data set is structured in a hierarchical order with a tree layout with roots, branches, and nodes. It allows us to show information about an important amount of data in a very efficient way in a limited space.
The SciPy cookbook includes an example using matplotlib
, but without labels.
IA link: https://web.archive.org/web/20150324163314/http://wiki.scipy.org/Cookbook/Matplotlib/TreeMap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With