--- On Tue, 10/28/08, Christopher Barker <Chr...@no...> wrote: > > 4) One drawback compared to the existing cocoa-agg > > backend is that the latter allows easy integration > > of matplotlib into a larger cocoa application, > > whereas my backend only cares about matplotlib. > ... > Is there any possibility to embed it in another app? I know > that wx, for instance, can pass a Window handle to other > libs, so that you can have that window managed and drawn > by other code, while wx handles the rest of the app -- > would this kind of thing be possible with your code with > wx, and Cocoa, and QT, and ? That is a good idea. I'll check whether it is possible. Basically, if the embedding app can manage a window by passing it the window handle then it should be possible. > I'm still curious where all this speed comes from. MPL > already uses Agg > for a lot, and it's generally reported to be as fast as > many native > drawing APIs (though maybe not quartz?) > At this point, most of it is coming from having complete control over the event loop, which allows to avoid superfluous calls to draw(). Best, --Michiel