Hi,
I've figured this out. There was actually invalid input for the range
the way my code really was. The code I had posted was completely
wrong, anyway. All good now. :)
The code
p.plot(pvar[t,ipos,:])
ax = gca()
ax.set_ylim(-10,10)
p.show()
works with or without a loop wrapped around it. :)
C
Hi,
the code given works for me in principle. If I run ipython without the
-pylab flag and do an
import * from pylab
at the start instead, I can run this code and it runs fine. (If not,
the plot() will imply the show and everything after that doesn't matter
any more.)
However, I'm now running in
Christian,
The answer to your second question is a little more involved and I think there
are a few posts regarding custom colormaps on the mailing list that may be of
interest...I'd try searching through those. I may not be the best person to
answer that question.
Also you may be intereste