1、基本要点
# 导入模块 from matplotlib import pyplot as plt # x轴数据 x = range(2, 26, 2) # y轴数据 y = [15, 13, 14.5, 17, 20, 25, 26, 26, 27, 22, 18, 15] # 绘图 plt.plot(x, y) # 展示图片 plt.show()
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv12825
1、基本要点
# 导入模块 from matplotlib import pyplot as plt # x轴数据 x = range(2, 26, 2) # y轴数据 y = [15, 13, 14.5, 17, 20, 25, 26, 26, 27, 22, 18, 15] # 绘图 plt.plot(x, y) # 展示图片 plt.show()
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv12825