Hi everybody

I have modified the load function (in matplotlib.mlab) to be able to load
strings e.g for use as xticks. Anyone willing to test and comment, 'cause
when i'm done i'll send it as a patch.

The usage is as follows:

from reload import load
s,A,B=reload('data.dat',usecols=(1,2),unpack=True,string=0)

here the data file is like:
# Molecule Energy1 Energy2
Fe     -831    -832
Pt     -923    -932

It can also be used without unpack, but only one array of strings can be
extracted.

-- 
Med Venlig Hilsen / Best regards

Troels Kofoed Jacobsen
-------------------------------------------------------------------------
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