Anyone else make pylab embeded in MS windows application?

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.

--tocer

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

···

On 6/19/07, tocer <tocer.deng@...287...> 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.

Thank your reply. It seems to be helpful for me.

John Hunter wrote::

···

On 6/19/07, tocer <tocer.deng@...287...> 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