>>>>> "Pierre" == Pierre GM <[EMAIL PROTECTED]> writes:
Pierre> That seems to give me what I want, as long as I use the Pierre> GTKAgg backend. What should I do to have the same result Pierre> with another backend, without having to rewrite a Pierre> new_figure_manager each time ? Anyway, is it even the way Pierre> 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 def switch_backend(newbackend): """ 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. """ close('all') global new_figure_manager, draw_if_interactive, show matplotlib.use(newbackend) reload(backends) from backends import new_figure_manager, draw_if_interactive, show You could emulate this approach .... JDH _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users