Re: [Matplotlib-users] forcing prompt draw

2011-06-27 Thread Eric Firing
On 06/27/2011 03:38 AM, Jonathan Slavin wrote: > I tried the suggested clean-up but saw no difference in performance. I > left out a crucial piece of information, I think, in my earlier message. > The delay in drawing occurs when I'm running the code from within > ipython, invoked with the -pylab

Re: [Matplotlib-users] forcing prompt draw

2011-06-27 Thread Jonathan Slavin
I tried the suggested clean-up but saw no difference in performance. I left out a crucial piece of information, I think, in my earlier message. The delay in drawing occurs when I'm running the code from within ipython, invoked with the -pylab flag. When I run it directly from the command line, I

Re: [Matplotlib-users] forcing prompt draw

2011-06-24 Thread Eric Firing
On 06/24/2011 04:03 AM, Jonathan Slavin wrote: > import matplotlib.pyplot as plt > plt.ion() > fig = plt.gcf() > for obsid in obsids: > > plt.cla() > fig = plt.gcf() > ax = fig.add_axes([0.15,0.1,0.8,0.6]) > ax.plot(x,y) > plt.draw() > ans = raw_input('continue?

[Matplotlib-users] forcing prompt draw

2011-06-24 Thread Jonathan Slavin
To all: I'm doing a series of fits and want to display the results of each in a figure before I go to the next one. I currently do roughly something like this (with a lot left out): import matplotlib.pyplot as plt plt.ion() fig = plt.gcf() for obsid in obsids: plt.cla() fig = plt.gc