I want to get the figure_manager of the created figure: for example, I can do this using the pyplot interface using:
from pylab import* figure() plot(arange(100)) mngr = get_current_fig_manager()
However, if I have a few numbers:
from pylab import * fig0 = figure() fig1 = figure() plot(arange(100)) mngr = fig0.get_manager()
however, by carefully examining the drawing API, http://matplotlib.org/api/figure_api.html was not useful. My IDE also did not have autocomplete on the shape instance, none of the methods / members seemed to give me a "manager".
So, how do I do this and in general, where should I look, is there a pyplot method that I need an analog in the OO interface?
PS: what object does get_current_fig_manager () return anyway? In the debugger, I get:
type(get_current_fig_manager()) <type 'instance'>
which sounds pretty mysterious ...
source share