I would also highly recommend Ken McIvor's wxmpl: http://agni.phys.iit.edu/~kmcivor/wxmpl/
It makes wxPython and mpl play very nicely together. I have been involved in several threads recently about how no to import pylab in data analysis libraries and when embedding in gui's. You may find this thread useful: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg02732.html Ryan On 6/22/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 6/22/07, Paul Smith <[EMAIL PROTECTED]> wrote: > > I've converted an analysis program that does some plotting to use the > > matplotlib API, then wrote a GUI control program using wxWidgets to call it. > > I've tried to keep the two parts as separate as possible so there is an > > analysis class that is instantiated in the GUI part, and then the GUI part > > just calls the analysis methods. > > > Ok, so under ipython -pylab everything seems to (mostly) go ok. The GUI > > This appears to be your problem. If you are using mpl in a wx app, > you should not be importing pylab or running ipython in pylab mode > because you will get mainloop conflicts. Rather, use the matplotlib > API directly following the lead of examples/embedding_in_wx*.py and > tthen run ipython in -wthread mode rather than pylab mode. > > 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 > ------------------------------------------------------------------------- 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