Reputation: 1043
What is this type of plot called and is there a way to implement it in matplotlib or seaborn?
Source: https://oec.world/en/profile/country/tkm
Upvotes: 1
Views: 59
Reputation: 30579
It's called a Tree map. You can create it with squarify.
Example:
import matplotlib.pyplot as plt import squarify squarify.plot(sizes=[13,22,35,5], label=["group A", "group B", "group C", "group D"], alpha=.7 ) plt.axis('off') plt.show()
Upvotes: 4