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] 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 objects,

Re: [Matplotlib-users] Check if figure exists

2009-03-07 Thread Eric Firing
Christopher Brown wrote: Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the figure exists, and if so, turn off autoscaling (using

Re: [Matplotlib-users] Check if figure exists

2009-02-27 Thread Matthias Michler
On Thursday 26 February 2009 20:52:17 Christopher Brown wrote: Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the figure exists, and if so,

Re: [Matplotlib-users] Check if figure exists

2009-02-27 Thread Eric Firing
Matthias Michler wrote: On Thursday 26 February 2009 20:52:17 Christopher Brown wrote: Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the

[Matplotlib-users] Check if figure exists

2009-02-26 Thread Christopher Brown
Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the figure exists, and if so, turn off autoscaling (using Eric's suggested