Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ENH]: data kwarg support for mplot3d #20912

Closed
@anntzer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions