From: Gregory L. <gre...@ff...> - 2004-07-28 12:56:51
|
On Wed, 2004-07-28 at 14:11, John Hunter wrote: > >>>>> "Mark" == Mark Engelhardt <ma...@st...> writes: > > Mark> Hi, I am not in interactive mode, I am writing scripts that > Mark> handle a bunch of data and then plot it all. However, when > Mark> show() is called, the script stops and waits for all the > Mark> windows it opens to be closed before continuing. What I was > Mark> hoping for was a way to have the plots be drawn in windows > Mark> that were no longer hooked into the script, such that the > Mark> script could continue running (to completion) regardless of > Mark> what happened to the open windows. I did try 'draw()', > Mark> which does not appear to open any new windows. > > Hi Mark, > > Thanks for the explanation. Now I understand what you are trying to > do. You are right about draw, all it does is redraw an existing > figure, eg if you have changed some data in it. Hi, I think I recall I observed the requested behavior (i.e. get hand back in interractive window or script after a show()) in previous version of matplotlib. I remember this cause reproducing this non-blocking behavior of show() has proven to be a little bit hard to reproduce when developing FltkAgg backend (I have done it using thread, and it works, so a solution would be to use this backend when it is integrated). But with TkAgg and GTKAgg, cvs version, on linux, it does not work anymore (i.e. show() do not return hand, as mentioned) I tested some earlier version (0.54 on windows, TkAgg) to see if I have so false souvenir, but it indeed work as Mark want (i.e. show() is non-blocking )...So I guess something has changed in the show() mechanism since, maybe to deal with the new event mechanism? Best regards, Greg. |