matplotlib绘图,绘制多条线段
基本绘图:import matplotlib.pyplot as plta=[0.005,0.01,0.02,0.04,0.06]b=[20,18,10,13,15]plt.plot(a,b)plt.xlabel("初始位移量/mm")plt.ylabel("迭代次数")plt.show()采用子图subplots绘制多条线段:import matplotlib.pyplot as pltimport numpy as npa=[1,2,3]b=[4,5,6]c.
原创
2022-02-18 21:05:31 ·
3113 阅读 ·
0 评论