Does anyone know how to fix the tkagg interactive
plotting in matplotlib?
 
I have a Mac Book Pro, Mac OS X 10.4.  I installed SAGE (a symbolic math
package with Python2.6), but got the following error when trying to import
pylab:
 
/Applications/sage/local/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py
in <module>()
      6 
      7 import Tkinter as Tk, FileDialog
----> 8 import tkagg                 # Paint image to Tk photo blitter extension
      9 from backend_agg import
FigureCanvasAgg
     10 
 
/Applications/sage/local/lib/python2.6/site-packages/matplotlib/backends/tkagg.py
in <module>()
      2 import Tkinter as Tk
      3 
      4 def blit(photoimage, aggimage,
bbox=None, colormode=1):
      5     tk = photoimage.tk
      6 
 
ImportError: No module named _tkagg
 
It appears this is matplotlib problem.
 
Some googling turned up a web discussion where it was
suggested that this is a matplotlib problem, not a SAGE one. The recent thread
"[Matplotlib-users] problem with import pylab" suggests that,
too.  I've found a few comments
online, but the "fixes" are all for Linux platforms.
 
Does anyone know how to get TKagg interactive working
on Mac OS X?  It appears to revolve
around getting the importable library _tkagg in place.  Maybe other things, too.
 
Thanks for any help or pointers.
 
-- Lou Pecora



      
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to