[Tutor] plotting in python

Andreas Perstinger andreas.perstinger at gmx.net
Thu Dec 1 10:44:14 CET 2011


[Please don't top-post. Put your answers below the text you cite.]

On 2011-12-01 09:01, stm atoc wrote:
> The output of the print len(Conc[0]), len(z) is 100 3600.
> Now I changed Conc[0] to Conc[1], and the output is: 100 100

So, you've changed the line

print len(Conc[0]), len(z)

to

print len(Conc[1]), len(z)

and the only thing that changed in the output is the length of "z" which 
is calculated independently of "Conc" in your script?

This would be very strange.

Does your script run if you use "Conc[1]" (or some other indexes) 
instead of "Conc[0]" when you call the "plot"-function?
If yes, it's very likely that you have the "wrong" data in "Conc[0]". 
But that's impossible to tell without your data file ("ourtest_out.list").

Bye, Andreas


More information about the Tutor mailing list