饼状图:常用于统计学模型;有2D与3D饼状图。

import matplotlib.pyplot as plt
import numpy as np
data = [5,60,20,40]
plt.pie(data)
plt.show()

6.Matplotlib绘图--饼状图

相关文章: