Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: 3D Scatterplot - Passing String as Positional Argument Results in Unexpected Behaviour #27287

Open
@knods3k

Description

@knods3k

Bug summary

When passing the"x" as a positional argument to the scatterplot function, it unexpectedly reorders the actual input data.

Code for reproduction

importmatplotlib.pyplotaspltimportnumpyasnpnp.random.seed(1)x=np.random.uniform(-5,5,50)y=np.random.uniform(-5,5,50)z=np.random.uniform(-5,5,50)ax=plt.subplot(111,projection='3d')ax.scatter(x,y,z,"x",color="r",label="Target")ax.scatter(x,y,z,"^",color="b",label="Target")

Actual outcome

image

Expected outcome

This should probably throw an error of some kind. Otherwise it should not result i unexpected behaviour.

image

Additional information

No response

Operating system

Mac OS 13.5

Matplotlib Version

3.8.0

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.11.6

Jupyter version

7.0.6

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp