On Fri, Mar 21, 2008 at 1:40 AM, Eric Firing <[EMAIL PROTECTED]> wrote: > > > Out of interest, how does one tell MPL to "start a new figure and forget > > everything that's gone before"? > > You can minimize the amount of package and module-level state > information by using the oo interface: see examples/agg_oo.py. If you > change any rcParams dictionary entries, typically using the rc function, > then you can restore the dictionary to its default condition with the > rcdefaults() function.
I think it is comparatively rare to modify rc params within code (and never necessary since you can achieve the same by setting properties directly using the API) so if the rc params are the only global information we are using (and I am not aware of other problems off the top of my head but you might be well served to post to the antigrain mailing list to see if agg is thread safe) it shouldn't pose a serious problem. JDH ------------------------------------------------------------------------- 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