Re: [Matplotlib-users] Fitting a curve

2007-08-31 Thread Christian Meesters
Hoi, There is still MPL's polyfit function and I have to admit that Steve Schmerler's solution looks better that mine, but I've pasted a quick & dirty solution here: http://www.python-forum.de/topic-8363.html It shows the use of polyfit as well as (almost) Steve's approach. Further examples on li

Re: [Matplotlib-users] Fitting a curve

2007-08-30 Thread Steve Schmerler
Wolfgang Kerzendorf wrote: > I know this is not completely matplotlib related but perhaps you can > help me none the less: > I want to fit a curve to a set of data. It's a very easy curve: y=ax+b. > But I want errors for a and b and not only the rms. Is that possible. > What tasks do you recommen

Re: [Matplotlib-users] Fitting a curve

2007-08-30 Thread Peter I. Hansen
On 8/30/07, Wolfgang Kerzendorf <[EMAIL PROTECTED]> wrote: > I know this is not completely matplotlib related but perhaps you can > help me none the less: > I want to fit a curve to a set of data. It's a very easy curve: y=ax+b. > But I want errors for a and b and not only the rms. Is that possible