Skip to content

Quadmesh.set_array should validate dimensions #17508

Closed

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.

Activity

  1. added this to the v3.4.0 milestone on May 25, 2020
  2. added
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
    on Jul 7, 2020
  3. tacaswell commented on Jul 7, 2020

    @tacaswell
    Member

    This is a good first issue because it does not require changes to the public API, but medium difficulty because it does involve adding a bit of state to the Artist and working through the history / variety of data shapes that can be passed in to determine what we need to check against.

  4. done-my-way commented on Jul 8, 2020

    @done-my-way

    @tacaswell
    Hello, I'd like to work on the issue. It's my first contribution, so I'd like to ask, what is the workflow? fork -> create new branch (from which one) -> make changes -> open a PR 😅

  5. petor-traffs commented on Dec 2, 2020

    @petor-traffs

    @tacaswell Hello!! I'm looking to make my first contribution in an Open Source project! I was wondering if this issue is still available. If so, is there anything I could start with? Thank you in advance!

  6. dopplershift commented on Dec 4, 2020

    @dopplershift
    Contributor

    The issue is still open and there aren't any linked Pull Requests, so have at it!

  7. modified the milestones: v3.4.0, v3.5.0 on Jan 27, 2021
  8. jeffreypaul15 commented on May 8, 2021

    @jeffreypaul15
    Contributor

    From what I understand, set_array needs to validate it's arguments if it has been flattened or is still a 2D array. Am I missing out anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: argument checkingValidation of acceptable argument valuesDifficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues🌱 Good 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