Line of best fit
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Mon Mar 31 21:00:52 EDT 2014
On Mon, 31 Mar 2014 04:29:15 -0700, Jamie Mitchell wrote:
> I am new to python so apologies for the ignorance with this question.
>
> How would I apply a line of best fit to a plot?
That depends on what software you are using to generate the plot. I see
you have this line of code:
> plt.plot(hs1,hs2,'.')
but you haven't told us what plt is, where it comes from, or anything
needed for us to answer your question.
So, start by telling us what plt is, and we may be able to tell you
whether or not it supports lines of best fit.
--
Steven D'Aprano
http://import-that.dreamwidth.org/
More information about the Python-list
mailing list