1
votes

I am working with python 2.7.5 using numpy.version: 1.7.1 matplotlib.version: 1.3.1 When I start "ipython2 --pylab" and execute the following code

x = matrix("1,2,3")
plot(x)

I get the error message

[...]
/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

In the older matplotlib version 1.3.0 this error was not present.

Any help is highly appreciated! Thanx, Klaus.

1
Does this patch github.com/matplotlib/matplotlib/pull/2591 fix your problem? - tacaswell
Great! Yes, this fixed the problem: github.com/dopplershift/matplotlib/commit/… Thank you, tcaswell! - user3003764

1 Answers