饼图
matplotlib
import matplotlib as plt
plt.pie(x,explode,labels,colors,autopct,pctdistance,shadow,labeldistance,
startangle,radius,counterclock,wedgeprops,textprops,center,frame)
explode:突出显示
autopct:自动百分比
pctdistance:百分比与圆心的距离
startangle:初始摆放角度
radius:半径
counterclock:顺时针
wedgeprops:边界属性
center:中心位置
frame:图框
plt.rcParams['front.sans-serif'] = ['SimHei']
edu = [0.25,0.25,0.25,0.25]
labels = ['小','中','大','其他']
explode = [0,0.1,0,0]
colors = ['red','green','steelblue','yellow']
plt.axes(aspect='equal')
plt.pie(x=edu,explode=explode,labels=labels,colors=colors,autopct='%.1f%%',
wedgeprops={'linewidth':1.5,'edgecolor':'green'},
textpr