Reputation: 111
I need to fit a horizontal line into my matplotlib plot in python, couldn't find any simple method. so, was wondering if there is any simple way to fit a line of specific slope in matplotlib.
Upvotes: 1
Views: 172
Reputation: 534
horizontal line: plt.axhline(.5)
To fit a scatter plot, you can use seaborn.regplot
Upvotes: 1