From: Troels K. J. <tkj...@gm...> - 2008-03-03 14:51:13
|
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 |