I have great working matplotlib pylab code that fires
> off a new plot when asked to.
> Now we want to embed/add this code into an existing wx
> gui....Is it possible to make the pylab code embed the
> plot into an existing gui window rather than creating a
> //new// plot window/widget?
> Also, a colleague says wx doesn't seem to play nice with
> pylab module. Is pylab somehow slower or not the best
> fit with wx?? He says 'Figure()' code seems better with
> wx. Any advice/comments greatly appreciated.
Your colleague is right. The main problem with mixing the pylab
interface with your own wx widgets is that pylab controls the windows
it creates, eg managing destroy etc.
For examples on how to embed matplotlib is an wx application, see the
examples/embedding_in_wx*.py demos in the matplotlib src distro.
Hope this helps!