python学习笔记

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值