From: John H. <jdh...@ac...> - 2005-01-31 23:20:09
|
>>>>> "seberino" == seberino <seb...@sp...> writes: seberino> I have great working matplotlib pylab code that fires seberino> off a new plot when asked to. seberino> Now we want to embed/add this code into an existing wx seberino> gui....Is it possible to make the pylab code embed the seberino> plot into an existing gui window rather than creating a seberino> //new// plot window/widget? seberino> Also, a colleague says wx doesn't seem to play nice with seberino> pylab module. Is pylab somehow slower or not the best seberino> fit with wx?? He says 'Figure()' code seems better with seberino> 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! JDH |