-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add tests for mpl_toolkit anchored artists #23863
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
d544e2a
to
fbc169d
Compare
We should probably talk about where all these tests are going? mpl_toolkits has, in the past, been discussed as under-tested and under-maintained. If we want to maintain it, why not move into the main library? |
I have not really understood the role of mpl_toolkits. Is it correct that it is possible to "install" other packages under mpl_toolkits and that some do?` Primarily just trying to increase coverage and learn a bit more of the code base... (And sometimes, untested code actually turns out to be incorrect, like in this case.) But one could for sure, I guess, claim that for 4.0 one moves the useful parts of it to the main library? |
💯 your work here has been great and, if we plan to keep these routines around, is well overdue. But if the plan is to obsolete a fair bit of this, then I didn't want you to feel you had wasted effort. It would be great to revisit this on a call soon. I guess id recommend that if you find parts of the tool kit useful, consider if there are straightforward ways to bring into the main library. For instance we did that with inset_axes a couple of years ago, and 3.6 will have layout="compressed" which is meant to do the same things as image_grid. |
I do not really have that much of a threshold for doing this. Something I play around with when I lack energy for proper things... It will probably take some time to deprecate etc anyway. |
Yes but if we codify the behaviour with tests, it becomes even harder to change and or deprecate. |
Another way to see it is that then we know that we change the behavior...
(All these exists in tutorials/examples. I have more or less copied them
from there and only changed a bit to trigger parts of the code.)
But let's talk about it on Thursday(?).
(There is code that has completely broke in some examples as there's been
no tests for it.)
|
fbc169d
to
2b22fe3
Compare
…863-on-v3.7.x Backport PR #23863 on branch v3.7.x (Add tests for mpl_toolkit anchored artists)
PR Summary
Tests for previously untested anchored artists.
Includes the fix in #23862 so if this is merged before that, no need for that. But since that should go in 3.6 and this doesn't have to...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).