This package includes some extra functions to matplotlib.
Currently there includes the following usefull functions:
-
AutofitText
class fromAutofitText
module, which can auto-fit the text into a box region, which is specified by width x height at the text position (x,y) -
treemap
fromtreemap
module, which plots a treemap. It supports the hierarchical treemap. Its labels use theAutofitText
class to auto fit the text into the tiles. For usage, please see the docstrings in the source code and the examples in the jupyter notebook.
-
With one level
-
With multi-levels
-
Split at the first level
-
Add some pads between the parent tiles and children tiles, and label the parent tiles
For the source code to generate the above figure, please see the examples