We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug summary
I created a Path3DCollection from Axes.scatter(self). The Path3DCollection.set_color(self) method does not change the color of scatter points.
Code for reproduction
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation np.random.seed(1000) BLUE = "#1f77b4" YELLOW = "#bcbd22" points = np.random.random_sample((1000, 3)) colors = lambda: list(YELLOW if np.random.random() > 0.5 else BLUE for _ in points) fig = plt.figure() ax = plt.axes(projection='3d') paths = ax.scatter(points[:,0], points[:,1], points[:,2]) def step(i): paths.set_color(colors()) # paths.set_3d_properties(points[:,2], 'z') # Try uncommenting this line return paths anim = animation.FuncAnimation(fig, step, frames=200, interval=20) plt.show()
Actual outcome
Colors are static and do not change from initial.
If you run set_3d_properties(), then the colors do change, but I don't know how to use this function to leave the coordinates alone.
Expected outcome The magic of Christmas.
The points should not change in position like in the first image, but should change in color like in the second image.
Matplotlib version
Matplotlib installed from pip
The text was updated successfully, but these errors were encountered:
This was fixed by #18189.
Sorry, something went wrong.
QuLogic
No branches or pull requests
Bug report
Bug summary
I created a Path3DCollection from Axes.scatter(self). The Path3DCollection.set_color(self) method does not change the color of scatter points.
Code for reproduction
Actual outcome
Colors are static and do not change from initial.

If you run set_3d_properties(), then the colors do change, but I don't know how to use this function to leave the coordinates alone.

Expected outcome
The magic of Christmas.
The points should not change in position like in the first image, but should change in color like in the second image.
Matplotlib version
Matplotlib installed from pip
The text was updated successfully, but these errors were encountered: