Bill Baxter wrote: > gah! bitten by reply to sender once again. Yes, this is a bit annoying.
> ---------- 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. I am not sure (never used threads before), but it works for my application and is very simple :). I do not have any GUI (meaning top-level window with menus etc. driving some backend). Instead, I have a command line program that interactively (pylab.ion()) pops up a figure window and calls pylab.ioff(). Then from time to time it plots some data and I want the figure window updated. There is no show() call while the updating thread is running, so there is no GUI event loop, is that right? Thank you for your comment, I am new to threading issues. 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