ipython and figs with mplot3d

hi
i've just upgraded to 0.99, and trying out mplot3d for the first time -
wondering if a few things are standard behaviour or not. any example i
choose from the standard bunch will work fine with "%run ***" in
ipython, but once the figure is drawn and closed, i no longer have the
ability to plt.show().

also, if i don't %run anything, but try and work my way through
interactively by ipython (with "-pylab") commands, no axes can be
generated (Axes3D imported) with "ax=Axes3D(fig)" - just nothing
happens in the figure brought up previously by "fig=plt.figure()".

if i start ipython without "-pylab", it works - sort of. running
step-wise through the example will work fine, though i lose the ipython
command line while the figure is open. when it's closed, though, i
can't get another figure to display at all - sort of like the first
problem i mentioned not being able to plt.show() again in the same
interactive session.

so, is this normal?

thanks

Hi,

hi
i've just upgraded to 0.99, and trying out mplot3d for the first time -
wondering if a few things are standard behaviour or not. any example i
choose from the standard bunch will work fine with "%run ***" in
ipython, but once the figure is drawn and closed, i no longer have the
ability to plt.show().

This sounds like expected behavior to me; plot() is only supposed to
be called once to draw all the figures that have been generated up to
that point.

also, if i don't %run anything, but try and work my way through
interactively by ipython (with "-pylab") commands, no axes can be
generated (Axes3D imported) with "ax=Axes3D(fig)" - just nothing
happens in the figure brought up previously by "fig=plt.figure()".

Strange, but I indeed see the same behavior here; I'll look into it!

if i start ipython without "-pylab", it works - sort of. running
step-wise through the example will work fine, though i lose the ipython
command line while the figure is open. when it's closed, though, i
can't get another figure to display at all - sort of like the first
problem i mentioned not being able to plt.show() again in the same
interactive session.

Again, this is expected behavior.

so, is this normal?

Concluding: partly yes, partly no, thanks for reporting!

Regards,
Reinier

ยทยทยท

On Wed, Sep 30, 2009 at 8:44 AM, dave martin <mpl@...2801...> wrote:

thanks

--
Reinier Heeres
Tel: +31 6 10852639