我试图在Mac机上使用matplotlib,我无法用它生成任何迭代图。在UI显示上没有任何情节,我看到以下异常被提出:matplotlib在OS X上的TclError
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1410, in __call__
return self.func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 245, in resize
self.show()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 249, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/tkagg.py", line 19, in blit
tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox_array))
TclError
我曾尝试重新安装的Tcl/Tk,但结果还是一样。还有什么我可以尝试吗?每当我尝试生成一个交互式图表时,都会发生这种情况,静态(png)图片就可以。
Ugh;它并没有报告Tcl方面的例外情况。 –
我对Tcl没有经验。无论如何要知道什么是Tcl异常?任何日志? – Raphael
跟踪将被写入Tcl全局变量'errorInfo'。 –