|
From: Eric F. <ef...@ha...> - 2009-03-08 06:39:59
|
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 > Eric's suggested axes.set_autoscale_on(False)) in case the user has zoomed. > 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 |