On 6/19/07, tocer <[EMAIL PROTECTED]> wrote: > I have a project coding with Delphi+p4d, and I wish embeded pylab in it, but I > don't know how to do it. > > Any suggestion is appreciate.
You should follow the lead of one of the *Agg backends, eg backend_qtagg4.py. The basic approach is to use some GUI library for window management, buttons, etc, and use the matplotlib Agg rendering library to create your image. That way you don't have to worry about any of the GUI drawing functions, and can just transfer the Agg canvas into the GUI canvas via a pixel buffer transfer. See lib/matplotlib/backends/backend_template.py for more info -- if you use the approach suggested above, you will not need to implemented the renderer or graphics context classes, only the figure canvas and manager. JDH ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users