[SciPy-user] plotting from within a wxPython app

mike cantor mcantor at stanford.edu
Tue Oct 25 01:29:54 CDT 2005

Hi all,

I am new to python and SciPy and so far I am having a great time with 
it!  Here is my question:

	I am writing a GUI using wxPython to manipulate and run an ODE-based 
model.  What is the best way to embed a plot in the application?  That is, 
how do instantiate a plot window within a frame/window which I can still 
control from the application.  I guess one possibility would be to save the 
plot to a png file and then open the file as an image in a frame but it 
seems like there should be a better way.  It would be nice if I could open 
a plot window from within the app that retains its interactive properties.

Of course I tried the dumb thing of just calling plot from within the "run" 
buttons event handler.  The result is that the plot comes up in its own 
nice window but if I so much as click on it the whole application crashes.

Any ideas?


More information about the SciPy-user mailing list