Re: [Matplotlib-users] Manually limiting value ranges

2009-01-13 Thread Christian Lerrahn
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

Re: [Matplotlib-users] Manually limiting value ranges

2009-01-06 Thread Christian Lerrahn
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

Re: [Matplotlib-users] Manually limiting value ranges

2008-12-30 Thread B Clowers
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