dushyanth
dushyanth

Reputation: 111

Fitting a line of specific slope in matplotlib

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

Answers (1)

David Smolinski
David Smolinski

Reputation: 534

horizontal line: plt.axhline(.5)
To fit a scatter plot, you can use seaborn.regplot

Upvotes: 1

Related Questions