📜  python 树图示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.373000             🧑  作者: Mango

代码示例4
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()