-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add zorder option in QuiverKey #23116
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.
Looks good! If you can please add a test for this it is helpful. One way may be to use something like:
(No idea about the exact syntax, but basically creating the same figure twice: one using the new keyword and one using the old This should go in |
feel free to move out of draft when there is a test. Feel free to ping if you need more guidance on the test. Note we already have |
Thank you for a lot of advice. I added a test and new API change doc. |
lib/matplotlib/tests/test_quiver.py
Outdated
X, Y, U, V = 1, 1, 2, 2 | ||
|
||
ax_test = fig_test.subplots() | ||
zorder_value = 5. |
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.
The default zorder
for quiver
is 1, so the default for quiverkey
is 1.1. That means zorder=5
may effectively be the same as not specifying anything? So I think this test needs at least another artist in between 1.1 and 5 to confirm that the key really is moved up.
Moved back to draft until the test can be fixed. Thanks! |
Hi @muchojp are you still interested in working on this? |
modify indentation modify docstring add zorder test linting patch and small modify Add new api changes doc
add zorder test
Co-authored-by: Elliott Sales de Andrade <[email protected]>
PR Summary
Add zorder option in QuiverKey. So far, if you want to set zorder, you need
set_zorder
. Therefore, I can makezorder
option available.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).