I would recommend using "pylab.load" for reading the data.  For example:

x, y = pylab.load("filename", unpack=True)  # with other options as 
required





sa6113 <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
09/02/2008 07:34 PM

To
matplotlib-users@lists.sourceforge.net
cc

Subject
[Matplotlib-users]  Curve fitting ...






Hello there, I have a problem on curve fitting , would you please help me 
?! I want to to develop a application that reads a text file with 2 
columns of floating point data (as x and y) and performs a polynomial 
curve fit of the data at the order specified by the end user and then 
provides the curve-fit coefficients as well as the curve fit errors. My 
problem is in curve fit errors , I want to abtain Max and L2-norm of 
error. In addition I use "matplotlib.mlab module " and polyfit function 
for computing polynomial curve fit. Regards. 
View this message in context: Curve fitting ...
Sent from the matplotlib - users mailing list archive at Nabble.com.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users



UNITED GROUP
This email message is the property of United Group. The information in this 
email is confidential and may be legally privileged. It is intended solely for 
the addressee. Access to this email by anyone else is unauthorised. If you are 
not the intended recipient, you may not disclose, copy or distribute this 
email, nor take or omit to take any action in reliance on it. United Group 
accepts no liability for any damage caused by this email or any attachments due 
to viruses, interference, interception, corruption or unauthorised access.
If you have received this email in error, please notify United Group 
immediately by email to the sender's email address and delete this document.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to