我需要在python的matplotlib图中拟合一条水平线,找不到任何简单的方法。因此,想知道是否有任何简单的方法来拟合matplotlib中特定斜率的线。
水平线:plt.axhline(.5)
plt.axhline(.5)