On Fri, Nov 14, 2008 at 5:20 PM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 11:12:14AM -0800, Benjamin J. Racine wrote: >> I use pause in matlab to cycle through an interactive do-loop and view a >> bunch of plots in interactively... > >> Don't bother reproducing it here, but I am just wondering if this is >> possible in ipython/matplotlib > > pylab.waitforbuttonpress will do what you want. > > Gaƫl >
waitforbuttonpress immediately returns for any keyboard or mouse event (from the gui canvas). If you want to examine the plot (pan, zoom, etc) with mouse, a quick solution would be to use a loop while not waitforbuttonpress(): pass The loop stops only for a key press. Also, take a look at ginput(). -JJ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users