Conversation
There was a problem hiding this comment.
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.
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 <quantum.analyst@gmail.com>
PR Summary
Add zorder option in QuiverKey. So far, if you want to set zorder, you need
set_zorder. Therefore, I can makezorderoption available.PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand 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).