Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
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
Expected outcome
This should probably throw an error of some kind. Otherwise it should not result i unexpected behaviour.
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