Skip to content

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

Closed
@joemilbourn

Description

@joemilbourn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions