gah! bitten by reply to sender once again. --bb ---------- Forwarded message ---------- From: Bill Baxter <[EMAIL PROTECTED]> Date: Mar 24, 2007 12:09 PM Subject: Re: [Matplotlib-users] interactive plots again To: Robert Cimrman <[EMAIL PROTECTED]>
Are you sure that's threadsafe? With most windowing toolkits it's not safe to do GUI things from threads other than the main one. Other threads can only post a message to the main GUI thread. Depending on how fig.canvas.draw is implemented, calling it from another thread might not be kosher. But I take it you haven't seen any meltdowns so far, so maybe its implementation does the threadsafe message posting thing. --bb On 3/22/07, Robert Cimrman <[EMAIL PROTECTED]> wrote: > Maybe I have reinvented the wheel, but I find the attached code snippet > very useful. > I have modified a bit the recipe at > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65222 > to be used in the following situation: > > You plot (interactively) something in a main program, which than works > heavily. Normally, when the figure window gets obscured, it will not > redraw. The attached code shows how to make a thread that periodically > redraws the figure. > > r. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users