-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
warning when scatter plot color settings discarded #23516
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping @matplotlib/developers
or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
Not passing all tests I'll reopen if I figure out whats going on. |
@swaltek It is also ok to leave it open and make it a draft. |
It looks like the warning found some cases in the test suite where we were passing (and ignoring) arguments! The right fix is likely to drop the |
The test failing in Appreciate the comments on the PR! |
Do you feel comfortable squashing this to one commit? |
Agree that Tim's suggestion should be taken
I took back my review to take this out of the "approved review list", but for our internal counting please consider it as approved by me so only one more review is needed. |
@@ -0,0 +1,3 @@ | |||
Warning when scatter plot color settings discarded | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
When making an animation of a scatter plot, if you don't set *c* (the color value parameter) when initializing the artist, the color settings are ignored. `.Axes.scatter` now raises a warning if color-related settings's are changed without setting *c* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap at 80 characters also.
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Doc build failure is unrelated. |
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Thanks @swaltek and congratulations on your first contribution to Matplotlib! 🎉 We hope to see you again! |
* Warning when scatter plot color settings discarded * Update lib/matplotlib/axes/_axes.py Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> * Wrapped 23516-MS.rst lines at 80 characters * Fixed tests to look for proper warning message * Update doc/api/next_api_changes/behavior/23516-MS.rst Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
PR Summary
first pr, happy to add/make any necessary changes
closes #23487
The changed test in
test_colorbar.py
was related removing a colorbar from a scatter plot. I don't think thecmap
there was necessary to test this. And running the tests on my own revealed thecmap
wasn't changing the color of the scatter plot anywaysPR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).