From: John H. <jdh...@ac...> - 2005-04-11 17:19:19
|
>>>>> "Matt" == Matt Newville <new...@ca...> writes: Matt> Hi John, These changes to backend_wx(agg).py seem ok to me. Matt> Trying to be conservative, I'm not entirely sure whether Matt> having the SetExitonFrameDelete() call is necessary (or Matt> perhaps more settings for the wxapp should be set....). Matt> What's pylab supposed to do in interactive mode if the user Matt> closes the plot window after show() but then wants to create Matt> and show() another figure? Is pylab supposed to Matt> automatically create another window and plot to that new Matt> window? This doesn't work for WX. In interactive mode the user shouldn't call show -- http://matplotlib.sourceforge.net/faq.html#SHOW because the figures will be automatically realized in interactive mode. Using ipython pylab mode with WX or WXAgg as my default backend, everything works as expected (eg I can close the window and the next plot command creates a new one). If you ware testing interactively in a standard python shell w/o proper threading support for wx, I'm not sure what will happen but it's not officially a supported mode of working. Some people do use show in this mode to try and make things work, but I don't have much experience with it. I also just tested backend : WX with interactive : True in pycrust and it also worked (new windows created after close, no use of show) JDH |