matplotlib画饼图基础
##不要尝试
# import matplotlib.pyplot as plt
# x = [15,30,45,10]
# #定义饼的标签,
# labels = ['A','B','C','E']
# #绘制饼图
# plt.pie(x,labels=labels)
# plt.show()
##显示百分比,设置正圆
# import matplotlib.pyplot as plt
# labels = ['A','B','C','D']
# x = [15,30,45,10]
# #显示百分比
#
原创
2020-09-12 17:24:59 ·
182 阅读 ·
0 评论