|
From: Anand R. <ana...@ya...> - 2012-03-04 05:24:00
|
I have cross posted this at Stackoverflow.com I installed `python 2.7.2` from `ActiveState` and then installed `matplotlib` from the sources. I getting errors when I tried a simple plotting procedure to test it. The error is similar to the one described here (http://code.google.com/p/cing/issues/detail?id=268) but it is for Macintosh. I work on a Linux machine and the info about machine is given below: % cat /etc/redhat-release CentOS release 4.6 (Final) % uname -a Linux scdbuild04 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:49:06 EST 2007 x86_64 x86_64 x86_64 GNU/Linux The error is produced by: % python ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2 (default, Jun 24 2011, 11:24:26) [GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pylab as plt >>> plt.ion() >>> x = [1,2,3] >>> plt.plot(x) Exception in Tkinter callback Traceback (most recent call last): File "/a/b/python2.7.2/linux26_x86_64/lib/python2.7/lib-tk/Tkinter.py", line 1410, in __call__ return self.func(*args) File "/a/b/python2.7.2/linux26_x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 236, in resize self.show() File "/a/b/python2.7.2/linux26_x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 240, in draw tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2) File "/a/b/python2.7.2/linux26_x86_64/lib/python2.7/site-packages/matplotlib/backends/tkagg.py", line 19, in blit tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox_array)) TclError [<matplotlib.lines.Line2D object at 0x2a9da13310>] Can some one help me fix this error? Thanks Anand |