Re: [matplotlib-devel] Backends object structure

2012-08-01 Thread Anton Akhmerov
To give a little bit more context, I want to implement a function which attaches a figure constructed via OO interface to pyplot. It seems that the only way to do so now is to go over all the backends, modify new_figure_manager to accept a figure argument, detect the backend used by pyplot, and u

[matplotlib-devel] Backends object structure

2012-08-01 Thread Anton Akhmerov
Hi everyone, I was looking at the matplotlib backends, and I have a question about the way things are organized. As of now every backend has: * FigureManager, which corresponds to a figure + canvas + renderer + sometimes FigureFrame. * Canvas, which contains a single figure and a renderer. Th