Hi Guys

Is there an eays way to plot a number vs a label from a file?

Here is an example
I have a datafile like this:
#Aa     Bb      nA      nB      Surf            Bulk            segEnergy
Fe      Cr      19      1       -909.065612     -909.060586     -0.100520
Fe      Ni      19      1       -855.708731     -855.700865     -0.157320
Fe      Mo      19      1       -810.257339     -810.252167     -0.103440

I want to plot the last row vs the second row.

Now i have to do:
y,dummy = load('data.dat',usecols=(6,6),unpack=True)
xticks=xticks(arange(3),('Cr','Ni','Mo'))
plot(y)

Is there an easy way to do this?

And why does usecols=(6) not work?

-- 
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