Hi Ben,

> Are you displaying the plots in the thread, or are you just saving the plots 
> directly?  If you are saving them directly, then you can set your backend to 
> be "Agg" and get rid of the Tkinter.Tk() call (and probably should get rid of 
> the import as well).  That way, matplotlib won't load up any gui toolkits at 
> all.

I'm saving the plots directly 
(plt.figure();plt.plot();plt.savefig();plt.close(fig)). I tried doing as you 
suggested [don't import Tk directly and change the backend to Agg] but it still 
crashes with the same TkAqua message. I don't explicitly import or use Tk 
anywhere in my code, so it seems that matplotlib is trying to load it anyway 
even when instructed to use a different backend.

I'm running Enthought Python 7.3-2 on Mac OS X 10.6.8. Note that this problem 
seems to be restricted to this particular operating system; when I run the code 
on CentOS, also using EPD 7.3-2, it does not crash.

Cheers,
Oliver


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to