plt.savefing(‘test’,dpi=600)
plt.subplot(221)
plt.annotate() 在图形中增加箭头注释
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.pie(data,explode) 绘制饼图
plt.scatter(x,y) 绘制散点图
plt.hist(x,bins,normed) 绘制直方图
中文显示
matplotlib.rcParams[‘font.family’]=‘SimHei’
plt.ylabel(“纵轴值”,fontproperties=‘SimHei’,fontsize=‘20’)
np.savetxt(frame,array,fmt=’%d’,delimiter=’,’)
np.savetxt(‘a.csv’,a,fmt=’%d’,delimiter=’,’)
np.loadtxt(‘a.csv’,delimiter=’,’)
np.save()
np.load()
n = np.random.normal(10,5,(3,4))
n = np.random.randint(100,200,(3,4))
print(table.cell(i,4).ctype)
ctype:0 empty 1 string 2 number 3 date 4 boolean 5 error