open figures list

Hello,

Is there a way to return a list of all the open figure numbers? For instance, if I had:

close('all')
figure(1)
[some plotting]
figure(5)
[some plotting]

I'd like to be able to have access to a command that returns the list [1, 5].

Thanks,

--b

Hello Belinda,

I just stumbled over the same problem. The following will give what you (we)
want:

[x.num for x in matplotlib._pylab_helpers.Gcf.get_all_fig_managers()]

Bye,
Martin