On Tue, Apr 20, 2010 at 4:44 PM, Antony Lee <antony....@ensmp.fr> wrote: > That would be a solution, indeed. However, is there really no way of coming > back to a pre-plt.show() state once all windows are closed? What kind of > irreversible things does plt.show() do?
It starts the GUI toolkit event loop, which starts to make things messy if you try to call show() again. It often works, but calling show() more than once is most-definitely not supported. Now, depending on what exactly you're trying to do, you can set everything up to work off of events from the GUI so that once you call show(), the user can click on various things and trigger actions. Have you looked at the examples in: examples/event_handling? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users