Matplotlib 1.3.1:plot(matrix(“1,2,3”)) - > RuntimeError:超出最大递归深度

时间:2013-11-18 07:40:35

标签: python numpy matrix matplotlib

我正在使用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。

1 个答案:

答案 0 :(得分:1)