[Matplotlib-users] I'm wrecked

2008-08-21 Thread Jack Sankey
I'm not sure if this is a matplotlib issue or what, but all of a sudden I was not able to do gca() or gcf() correctly. A simple command-line on pyshell (using wxAgg backend) went like this: import pylab pylab.plot([1,2,1]) # figure pops up pylab.gca().clear(); pylab.show() # nothing happens

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Eric Firing
Jack Sankey wrote: I'm not sure if this is a matplotlib issue or what, but all of a sudden I was not able to do gca() or gcf() correctly. A simple command-line on pyshell (using wxAgg backend) went like this: I'm not familiar with pyshell, but evidently it is turning interactive mode on,

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Darren Dale
On Thursday 21 August 2008 17:36:50 Eric Firing wrote: Jack Sankey wrote: pylab.gcf().clear(); pylab.show() # nothing happens With interactive mode off, in a script, show() should never be called more than once; it should be the last plot-related line of the script. I thought we supported

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Ryan May
On Thu, Aug 21, 2008 at 4:58 PM, Darren Dale [EMAIL PROTECTED] wrote: On Thursday 21 August 2008 17:36:50 Eric Firing wrote: Jack Sankey wrote: pylab.gcf().clear(); pylab.show() # nothing happens With interactive mode off, in a script, show() should never be called more than once; it