python 趋势线表达式_python绘制有箭头指示的趋势线
代码:import numpy as npimport matplotlib.pyplot as pltx=np.linspace(0,10,2000)y=np.sin(x)fig=plt.figure()ax=fig.add_subplot(111)ax.plot(x,y,ls='-',lw=2)ax.set_ylim(-1.5,1.5)arrowprops=dict(arrowstyle='-...