Re: [Matplotlib-users] Check if figure exists

2009-03-08 Thread Eric Firing
João Luís Silva wrote: > Eric Firing wrote: >> I added two functions to pyplot in svn: fignum_exists(num) and >> get_fignums() so that with future releases you won't have to delve into >> _pylab_helpers for this information. >> >> Eric > > Wouldn't it be better to have some way to iterate mpl ob

Re: [Matplotlib-users] Check if figure exists

2009-03-08 Thread João Luís Silva
Eric Firing wrote: > I added two functions to pyplot in svn: fignum_exists(num) and > get_fignums() so that with future releases you won't have to delve into > _pylab_helpers for this information. > > Eric Wouldn't it be better to have some way to iterate mpl objects, rather than having adhoc

Re: [Matplotlib-users] Pause/waitforbuttonpress behavior.

2009-03-08 Thread Jonathan Taylor
Wow... changing to TkAgg backend makes raw_input() just work. I suppose this is because the Tk thread does not need the GIL to render? Is there a downside to using TkAgg? I am also noticing that it is much faster than GtkAgg. Jon. On Sun, Mar 8, 2009 at 2:55 PM, Jonathan Taylor wrote: > Hi, >

[Matplotlib-users] Pause/waitforbuttonpress behavior.

2009-03-08 Thread Jonathan Taylor
Hi, I am looking to have ipython pause to show me a figure and wait for me to press a key before it updates the figure. I see that raw_input() does not let the figure update presumably because it blocks the gui thread. On the other hand, pylab.waitforbuttonpress works but only takes keys that we