Is it possible to do this kind of plotting with matplotlib? Or somewhat close?
I know fill can be used but the block texture I am not sure of.
Thanks.
Is it possible to do this kind of plotting with matplotlib? Or somewhat close?
I know fill can be used but the block texture I am not sure of.
Thanks.
These types of plots are called Treemaps.
A Treemap is a space-constrained visualization of hierarchical structures. It is very effective in showing attributes of leaf nodes using size and color coding. Treemap enables users to compare nodes and sub-trees even at varying depth in the tree, and help them spot patterns and exceptions.
They are recursively built, so posting a complete example would be difficult. A small cookbook recipe for Treemaps using matplotlib can be found here.