Answers for "Simple Example to Plot Python Treemap with lables"

0

Simple Example to Plot Python Treemap with lables

import matplotlib.pyplot as plt
import squarify
import pandas as pd

square_sizes=[30, 40, 10, 60]
labels=["30", "40", "10", "60"]
squarify.plot(sizes=square_sizes, label=labels, alpha=0.6 )
plt.axis('off')
plt.show()
Posted by: Guest on December-28-2021
0

Simple Example to Plot Python Treemap with lables

labels=["30", "40", "10", "60"]
squarify.plot(sizes=square_sizes, label=labels, alpha=0.6 )
Posted by: Guest on April-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language