Possibly related to the _tkagg extension -- that's what defines the "PyAggImagePhoto" method. If you installed ActiveState's Tcl/Tk after building matplotlib, that could explain this. Try doing a clean build of matplotlib again (removing the build directory first).
But that's only a suggestion -- I don't use Macs much. Cheers, Mike Chris Fonnesbeck wrote: > On Dec 2, 2007 10:44 PM, John Hunter <[EMAIL PROTECTED]> wrote: >> On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: >>> Running a recent build from svn on OSX 10.5, the TkAgg interface >>> becomes unresponsive after plotting a histogram and calling show(). >>> Here is a sample from the process, in case it is useful: >> I'm not seeing this with tkagg on 10.5. hist is working fine for me >> both in ipython and running histogram_demo.py -- what tcl/tk are you >> building against? > > I've just tried installing ActiveState's Tk/Tcl, but I get the > following error when I try to plot anything: > > Exception in Tkinter callback > Traceback (most recent call last): > File > "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", > line 1403, in __call__ > return self.func(*args) > File > "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py", > line 188, in resize > self.show() > File > "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py", > line 192, in draw > tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2) > File "/Library/Python/2.5/site-packages/matplotlib/backends/tkagg.py", > line 15, in blit > tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox)) > TclError > > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users