| 
     
      
      
      From: John H. <jd...@gm...> - 2007-06-22 12:10:01
      
     
   | 
On 6/22/07, Paul Smith <pau...@ca...> 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  |