On 12/8/2008 3:32 PM James apparently wrote:
> I have a very simple plot, and the lines join point to point, however i
> would like to add a line of best fit now onto the chart, i am really new
> to python etc, and didnt really understand those links!
See the `slope_intercept` method of the OLS
James wrote:
> Hi,
>
> Thanks for all your help so far!
>
> Right i think it would be easier to just show you the chart i have so far;
>
> --
> import numpy as np
> import matplotlib.pyplot as plt
>
> plt.plot([4,8,12,16,20,24], [0.008,0.016,0.021,0.038,0.062,0.116], 'bo')
>
Hi,
Thanks for all your help so far!
Right i think it would be easier to just show you the chart i have so far;
--
import numpy as np
import matplotlib.pyplot as plt
plt.plot([4,8,12,16,20,24], [0.008,0.016,0.021,0.038,0.062,0.116], 'bo')
plt.xlabel("F (Number of washer
> 2008/12/9 Angus McMorland <[EMAIL PROTECTED]>:
> Hi James,
>
> 2008/12/8 James <[EMAIL PROTECTED]>:
>>
>> I have a very simple plot, and the lines join point to point, however i
>> would like to add a line of best fit now onto the chart, i am really new
>> to python etc, and didnt really understa
Hi James,
2008/12/8 James <[EMAIL PROTECTED]>:
>
> I have a very simple plot, and the lines join point to point, however i
> would like to add a line of best fit now onto the chart, i am really new
> to python etc, and didnt really understand those links!
>
> Can anyone help me :)
It sounds like
I have a very simple plot, and the lines join point to point, however i
would like to add a line of best fit now onto the chart, i am really new
to python etc, and didnt really understand those links!
Can anyone help me :)
Cheers!
James wrote:
> Hi,
>
> I am trying to plot a line of best fit
> 2008/12/8 James <[EMAIL PROTECTED]>:
> I am trying to plot a line of best fit for some data i have, is there a
> simple way of doing it?
Hi James,
Take a look at:
http://www.scipy.org/Cookbook/FittingData
http://www.scipy.org/Cookbook/LinearRegression
and the section on least square fitting t
Hi,
I am trying to plot a line of best fit for some data i have, is there a
simple way of doing it?
Cheers
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion