matplotlib0----01

import matplotlib.pyplot as plt

plt.plot([0,2,4,6,8],[3,1,4,5,2])
plt.ylabel("grade")
plt.axis([-1,10,0,6])#x轴 -1~10    y轴0~~6
# plt.savefig('test',dpi=600)#每个英寸中包含 600各像素点  默认PNG
plt.show()

  

猜你喜欢

转载自www.cnblogs.com/Mengchangxin/p/10067366.html
今日推荐