Skip to content

[Bug]: contour raises IndexError if Z is specified as keyword argument #24743

Closed
@simonkeys

Description

@simonkeys

Bug summary

pyplot.contour raises IndexError when Z is specified as Z=a.

Code for reproduction

import matplotlib.pyplot as plt
plt.contour(Z=np.random.rand(30, 30))

Actual outcome

Screen Shot 2022-12-15 at 8 23 39 PM

Expected outcome

Screen Shot 2022-12-15 at 8 24 46 PM

Additional information

No response

Operating system

OS/X

Matplotlib Version

3.6.2

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

Python 3.8.15

Jupyter version

6.5.2

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions