On Tue, Aug 18, 2009 at 3:55 AM, M. Hecht<mhecht2...@instant-mail.de> wrote: > The first figure is drawn without problems but after closing it (by clicking > the cross in the upper > right corner of the window) the second figure cannot be plot anymore. What I > wanted to do was > to visualize all selected files of a directory one after the other. To do > this I want to close the old > figure and then the new figure should com up as long as there is a file to > visualize left. Unfortunaltely > only the first figure is shown as in the simple example. > So, what's wrong
We don't really have support for blocking input where a program is halted until you close the open figure, and then the next one loads. You could write something using event handling, where on a key press event the next figure was loaded. You may also be able to use ginput here, which will give you a blocking input function. See http://matplotlib.sourceforge.net/users/shell.html http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.ginput http://matplotlib.sourceforge.net/users/event_handling.html http://matplotlib.sourceforge.net/examples/pylab_examples/ginput_demo.html ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users