-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix array-like linewidth for 3d scatter #23434
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.
I think it'd be better to not do this so late, since this is in the draw call. Then the array can be done once instead of every refresh, which could be a bit slow. |
I think this should be changed as well: matplotlib/lib/mpl_toolkits/mplot3d/art3d.py Lines 563 to 566 in 3992fb0
Both changing the name from |
Maybe one can also add a (See the test just below the one you added to see how they work.) |
To clarify, since Edit: added, can remove if not needed. |
Considering the spelling error, I do not think that it was actually properly tested, so ideally there should be a test that does set_linewidth and relies on that the spelling is correct. (The spelling error was introduced in #19812 btw.) |
The test which I added in 2bdbdca should cover that. The documentation build seems to be failing, is there anything I should do, or is it intermittent CI issue? |
@krassowski looking at the docs build logs, I think this was just an intermittent CI issue. I don't think there's a way to re-trigger the tests through the github gui, but if you do a |
Thanks, all checks have passed now π |
A gentle ping on this PR :) |
Congratulations on your first merged Matplotlib PR @krassowski π Hopefully we will hear from you again! Also thank you for the gentle ping! |
PR Summary
Fixes #23433 by casting
self._linewidths3d
tonp.array
at the latest stage possible and adds a test to ensure it works.The casting step could alternatively be moved to happen earlier in the code logic in
set_linewidth
and inset_3d_properties
, but I went for the simplest solution possible. Let me know if you want to change that (in that case, isself._linewidth3d = lw
a typo? should it be_linewidths3d
?)PR 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).