Build treemaps in Python and matplotlib with the squarify library. Learn how to change the colors in a treemap, how to add labels, borders and padding
https://www.google.com/search?q=treemap+python+example&