Re: [Numpy-discussion] Line of best fit!

2008-12-09 Thread James
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

Re: [Numpy-discussion] Line of best fit!

2008-12-09 Thread Lane Brooks
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')

Re: [Numpy-discussion] Line of best fit!

2008-12-09 Thread Alan G Isaac
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

[Numpy-discussion] Line of best fit!

2008-12-08 Thread James
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

Re: [Numpy-discussion] Line of best fit!

2008-12-08 Thread Scott Sinclair
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

Re: [Numpy-discussion] Line of best fit!

2008-12-08 Thread Angus McMorland
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 the

Re: [Numpy-discussion] Line of best fit!

2008-12-08 Thread Scott Sinclair
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 understand those links!