Skip to content

Quadmesh.set_array should validate dimensions #17508

Closed
@efiring

Description

@efiring

#16908 has added the ability to call Quadmesh.set_array with a 2-D argument.
When a Quadmesh is instantiated, its grid of vertices is fixed. It would be good to
have set_array validate its argument so that regardless of whether it has already
been flattened or whether it is a 2-D array such as one would supply to pcolormesh,
its dimensions are consistent with the dimensions of the vertex grid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: argument checkingDifficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions