在matplotlib中拟合特定斜率的线

问题描述 投票:1回答:1

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

python matplotlib curve-fitting data-fitting
1个回答
1
投票

水平线:plt.axhline(.5)

© www.soinside.com 2019 - 2024. All rights reserved.