📅  最后修改于: 2022-03-11 14:46:04.373000             🧑  作者: Mango
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()