摘要: 散点图绘制 from matplotlib import pyplot as plt import random from matplotlib import font_manager myfont = font_manager.FontProperties(fname="C:\Windows\Fo 阅读全文
posted @ 2020-04-23 22:14 我真的是受不了 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 1、导入模块 from matplotlib import pyplot as plt 2、设置x,y的参数 x = range(2,26,2) y = [15,13,14,5,17,20,25,26,26,27,22,18] 3、绘制图片plot plt.plot(x, y) 4、显示图形 plt 阅读全文
posted @ 2020-04-23 22:06 我真的是受不了 阅读(343) 评论(0) 推荐(0) 编辑