From: Christian M. <mee...@un...> - 2007-08-31 07:29:12
|
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 linear regression and polynomal regression can be found in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf Also, you might want to have a closer look on the scipy web page: http://www.scipy.org/ . Cheers Christian |