-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Patch3DCollection doesn't update color after calling set_color #3370
New issue
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
Comments
I think that this SO question is related: http://stackoverflow.com/questions/8971309/matplotlib-3d-scatter-color-lost-after-redraw/8974087#8974087 |
attn @WeatherGod |
Yeah, I am actually going over the Poly3DCollection code right now and I am I will first fix the bug at hand (not this one, the Poly3DCollection one) On Sat, Feb 7, 2015 at 5:45 PM, Thomas A Caswell notifications@github.com
|
PR #4090 fixes this completely. On Mon, Feb 9, 2015 at 3:47 PM, Thomas A Caswell notifications@github.com
|
I am so sorry for forgetting about the bugfix I had for this. I have cherry-picked it into its own PR and targeting it for the 2.1 release (since it is technically an API addition). |
@WeatherGod No problem. Thanks for the update! |
closes matplotlib#3370 We need to do an extra step to propagate the color information back to the 3D projections
closes matplotlib#3370 We need to do an extra step to propagate the color information back to the 3D projections
closes matplotlib#3370 We need to do an extra step to propagate the color information back to the 3D projections
From the above, I take it that this has been done using other PRs. Please feel free to re-open if I've misread. |
@tacaswell's PR is still in Draft. |
closes matplotlib#3370 We need to do an extra step to propagate the color information back to the 3D projections
closes matplotlib#3370 We need to do an extra step to propagate the color information back to the 3D projections
I've run into an issue in 1.3.1 and the latest nightly build of the 1.4.x release candidate where calling
set_color
on a Patch3DCollection object doesn't seem to work. I only see the issue when using a 3D plot.This bug was first reported here, but it seems to be unrelated.
Below is a snippet similar to what I've been trying. You can comment the lines at the bottom to alternate which version (2d or 3d) you're testing. The same mechanism works for a 2d scatter plot, but not for a 3d one.
The goal is to add a new point on each animation. Then, change all older points to a different color. It's not optimal and will constantly change the color of old points even if they've already been changed. However, it clearly demonstrates that the call to set_color doesn't have any effect even though it's a somewhat silly example.
The text was updated successfully, but these errors were encountered: