from matplotlib import pyplot as plt
#2到26间隔为2
x = range(2,26,2)
y = [15,13,14.5,17,20,25,26,26,27,22,18,15]
#设置图片大小
plt.figure(figsize=(20,8),dpi=80)
#绘图
plt.plot(x,y)
#保存
#plt.savefig("./t1.png")
#展示图形
plt.show()

plt.show()和plt.plot()

 

相关文章:

  • 2021-08-26
  • 2021-09-24
  • 2021-11-20
  • 2021-07-28
  • 2021-06-18
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-09-01
  • 2021-04-26
  • 2021-07-09
相关资源
相似解决方案