Eric Firing wrote: > In general, I don't think mpl is threadsafe at all; it uses global > variables, such as all the rc parameters, that could easily be modified > by one thread while being used by another.
Yep, I guessed as much, BFL it is then ;-) > I think that great care > would be needed if one wanted to have multiple threads making plots. > Having one plotting thread and any number of threads doing other things, > however, should be OK. Out of interest, how does one tell MPL to "start a new figure and forget everything that's gone before"? > At the very least, I think we would have to take all the global state > information and put it in a class instance, so there could be multiple > plotting machines. Yes. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users