-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: fix deprecation warnings in examples #23867
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
- The dist attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later. - Passing the loc parameter of __init__() positionally is deprecated since Matplotlib 3.6; the parameter will become keyword-only two minor releases later. - Passing the radius parameter of __init__() positionally is deprecated since Matplotlib 3.6; the parameter will become keyword-only two minor releases later. - Passing the closed parameter of __init__() positionally is deprecated since Matplotlib 3.6; the parameter will become keyword-only two minor releases later. - Auto-removal of grids by pcolor() and pcolormesh() is deprecated since 3.5 and will be removed two minor releases later; please call grid(False) first.
Thanks! Do you have any input on the related issue #23866 ? That is, did you somehow enable the deprecation warnings or did you use a more manual approach? |
Actually I came across this by chance: I was checking in which tutorials and examples the output needs to be captured (for #23796 (comment)). To do so I "grepped" the rst file created by sphinx gallery for |
judging by Lines 50 to 53 in 2171d95
warnings should make the docs build fail, but they don't do so for some reason. Maybe this is due to the |
OK! I have added a step that will at least list examples and tutorials with deprecation warnings in #23868 so that will help a bit. Thanks for sorting this out! |
…867-on-v3.6.x Backport PR #23867 on branch v3.6.x (DOC: fix deprecation warnings in examples)
PR Summary
(#23855 was for the tutorials, this is for the examples, sorry - I didn't notice it first that there were deprecations in the examples too)
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).