Advertisement

北京理工大学Python数据分析Matplotlib绘制饼图直方图极坐标散点图

阅读量:

pyplot的基本图表绘制函数

函数 说明
plt.plot(x,y,fmt,…) 绘制一个坐标图
plt.boxplot(data,notch,position) 绘制一个箱型图
plt.bar(left,height,width,bottom) 绘制一个条形图
plt.barh(width,bottom,left,height) 绘制一个横向条形图
plt.polar(theta,r) 绘制极坐标图
plt.psd(x,NFFT=256,psd_to,Fs) 绘制功率密度图
plt.specgram(x,NFFT=256,pad_to,F) 绘制谱图
plt.cohere(x,y,NFFT=256,Fs) 绘制x-y相关性图函数
plt.scatter(x,y) 绘制散点图,其中,x和y长度相同
plt.step(x,y,where) 绘制步阶图
plt.hist(x,bins,normed) 绘制直方图
plt.contour(x,y,z,n) 绘制等值图
plt.vlines() 绘制垂直图
plt.stem(x,y,linefmt,markerfmt) 绘制柴火图
plt.plot_data() 绘制数据日期

饼图初步尝试

复制代码
    import matplotlib.pypl

全部评论 (0)

还没有任何评论哟~