Skip to content

[ENH]: data kwarg support for mplot3d #20912

Closed

Description

@anntzer

Problem

3d axes don't support the data kwarg:

gcf().add_subplot(projection="3d").scatter("a", "b", "c", data={"a": [0], "b": [1], "c": [2]})

results in

ValueError: could not convert string to float: 'a'

Proposed solution

I think it's "mostly" a matter of adding a bunch of @_preprocess_data decorators to 3D plotting methods similarly to what's done for 2D plots, hence tagging as good-first-issue (though you'll need to understand a bit about the Matplotlib internals).

Additional context and prior art

No response

Activity

  1. added
    API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Aug 26, 2021
  2. akshat-max commented on Aug 26, 2021

    @akshat-max

    Hey I am new to open source can you assign me this issue if its open and some resources that can help me for solving this.

  3. story645 commented on Aug 27, 2021

    @story645
    Member
  4. added a commit that references this issue on Sep 19, 2021
  5. added this to the v3.5.0 milestone on Sep 25, 2021
  6. added a commit that references this issue on Sep 25, 2021
  7. added a commit that references this issue on Sep 25, 2021
  8. added a commit that references this issue on Oct 12, 2021
  9. added a commit that references this issue on Oct 20, 2021
  10. added a commit that references this issue on Oct 20, 2021
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: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …New featuretopic: mplot3d🌱 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