Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting a matrix fails with maximum recursion depth exceeded. #2681

Closed
joemilbourn opened this issue Dec 13, 2013 · 2 comments
Closed

Plotting a matrix fails with maximum recursion depth exceeded. #2681

joemilbourn opened this issue Dec 13, 2013 · 2 comments

Comments

@joemilbourn
Copy link

Plotting a numpy matrix in matplotlib 1.3.1 breaks, with the exception:

>>> plot(matrix([[1,2,3]]))
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/units.py", line 148, in get_converter
    converter = self.get_converter(xravel[0])
  File "/usr/local/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py", line 316, in __getitem__
    out = N.ndarray.__getitem__(self, index)
RuntimeError: maximum recursion depth exceeded

On matplotlib 1.1.1 plots three lines, as expected. Reproduced on:

  • python 2.7.3, linux, numpy 1.8.0
  • python 2.7.5, windows, numpy 1.7.1
@tacaswell
Copy link
Member

Is this a duplicate of #2290 ?

@joemilbourn
Copy link
Author

Quite possibly. It's also fixed in a matplotlib lib built from git this afternoon (commit 46a7a29).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants