user730936
user730936

Reputation: 139

Heat maps using matplotlib

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.

]

Upvotes: 2

Views: 1003

Answers (1)

Hooked
Hooked

Reputation: 88118

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.

Related questions:

Python graph like windirstat?

Treemap visualization in Python

Upvotes: 1

Related Questions