https://blog.csdn.net/m0_37362454/article/details/82791527 https://blog.csdn.net/qiu931110/article/details/68130199 1.线型 '-' solid line style'--' dashed line style'-.' dash-dot line style':' dotted line style 2.maker '.' point marker',' p…
一.基本用法 import numpy as np import matplotlib.pyplot as plt x = np.linspace(-1,1,50) # 生成-1到1 ,平分50个点 y = 2*x+1 plt.plot(x,y) # 把 x 和 y 展示出来 plt.show() # 脚本当中要用.show()图才会出来 import numpy as np import matplotlib.pyplot as plt x = np.linspace(-1,1,50) # 生…