matplotlib模块简单绘图

绘图流程 导入模块 import matplotlib.pyplot as pyplot import numpy 创建一个画布 pyplot.figure() 设定X,Y坐标 x=numpy.arange(0,1,0.2) y=x**2 绘制折线图 pyplot.plot(x,y) 展示 pyplot.show() 效果   参数 #字体 pyplot.rcParams['font.sans-s
相关文章
相关标签/搜索