我正在使用python 2.7.5 numpy。版本:1.7.1 matplotlib。版本:1.3.1 当我启动“ipython2 --pylab”并执行以下代码时
x = matrix("1,2,3")
plot(x)
我收到错误消息
[...]
/usr/lib/python2.7/site-packages/matplotlib/units.pyc in get_converter(self, x)
146 except AttributeError:
147 # not a masked_array
--> 148 converter = self.get_converter(xravel[0])
149 return converter
150
/usr/lib/python2.7/site-packages/numpy/matrixlib/defmatrix.py in __getitem__(self, index)
303
304 try:
--> 305 out = N.ndarray.__getitem__(self, index)
306 finally:
307 self._getitem = False
RuntimeError: maximum recursion depth exceeded
在较旧的matplotlib版本1.3.0中,此错误不存在。
非常感谢任何帮助! Thanx,Klaus。
答案 0 :(得分:1)