Re: [matplotlib-devel] Gtk stuff in mlab.py

2007-11-29 Thread John Hunter
On Nov 29, 2007 2:30 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > There are some Gtk-specific functions at the bottom of mlab.py. It > tries to "import gtk" and then will either define them or not. Ahh, I hadn't considered import time in the try/except block. In light of this, we probably

[matplotlib-devel] Gtk stuff in mlab.py

2007-11-29 Thread Michael Droettboom
There are some Gtk-specific functions at the bottom of mlab.py. It tries to "import gtk" and then will either define them or not. On one of my recent profiling fests, I noticed that this "import gtk" (if gtk is installed, and running with some non-Gtk backend) accounts for between 1-2% of the