That seems to give me what I want, as long as I use the
> GTKAgg backend. What should I do to have the same result
> with another backend, without having to rewrite a
> new_figure_manager each time ? Anyway, is it even the way
> to go ?
Note that pylab basically has the same problem, as each backend
defines their own new_figure_manager function. The problem is not the
Figure, but the FigureCanvas, which is backend dependent. Take a look
at the "switch_backend" function in pylab
Swtich the default backend to newbackend. This feature is
EXPERIMENTAL, and is only expected to work switching to an image
backend. Eg, if you have a bunch of PS scripts that you want to
run from an interactive ipython session, yuo may want to switch to
the PS backend before running them to avoid having a bunch of GUI
windows popup. If you try to interactively switch from one GUI
backend to another, you will explode.
Calling this command will close all open windows.
global new_figure_manager, draw_if_interactive, show
from backends import new_figure_manager, draw_if_interactive, show
You could emulate this approach ....