Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Treemap visualization in Python [closed]

Tags:

I'm interested in drawing a treemap:

treemap example

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?

like image 548
Primoz Avatar asked Jul 19 '10 16:07

Primoz


People also ask

Does Python have treemap?

There is a Treemap but it isn't in the python standard library.

Why is a treemap chart distorted?

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.

Is treemap a good visualization?

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.


1 Answers

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

like image 57
nkint Avatar answered Sep 22 '22 13:09

nkint