matplotlib颜色线条及绘制直线 plt.axhline(y=0,ls=":",c="yellow")#添加水平直线 plt.axvline(x=4,ls="-",c="green")#添加垂直直线 2020-06-05