Pellegrini,

Sorry for the delay.  The answer is that, unfortunately, it is not possible
to reshow a figure after closing it, even if you still have the figure
object.  Because of GUI backends, the close action destroys some GUI objects
that were created when the figure was created.  Therefore, a reshow can not
work.  This isn't really a bug or a feature, but a consequence of the GUI
interaction.

I don't know if it is possible to still pull out the axes objects and insert
them into a new figure, has anybody investigated that possibility?

Ben Root


On Mon, Jul 12, 2010 at 12:55 AM, Pellegrini Eric
<ericpellegr...@yahoo.fr>wrote:

> Hello everybody,
>
> My question is in the title !
>
> Say that I have the following code:
>
> f = pylab.figure()
> f.plot([1,2,3,4,5])
> pylab.show()
>
> and that, once I destroyed the figure by clicking on the top-right corner
> red button, I would like to redisplay it in the state it was just before I
> closed it. Is there way to do this ? There might be one as the variable f is
> still assigned as a figure object with all its attributes and methods still
> available.
>
> Thank you very much
>
> Eric
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to