-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate unused 'origin' and 'extent' in tricontour and tricontour #30028
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,6 @@ | ||||||||||
import numpy as np | ||||||||||
|
||||||||||
from matplotlib._api.deprecation import delete_parameter | ||||||||||
from matplotlib import _docstring | ||||||||||
from matplotlib.contour import ContourSet | ||||||||||
from matplotlib.tri._triangulation import Triangulation | ||||||||||
|
@@ -219,6 +220,9 @@ | |||||||||
|
||||||||||
@_docstring.Substitution(func='tricontour', type='lines') | ||||||||||
@_docstring.interpd | ||||||||||
@delete_parameter("3.9", "tricontour", "origin") | ||||||||||
@delete_parameter("3.9", "tricontour", "extent") | ||||||||||
|
||||||||||
Comment on lines
+223
to
+225
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This is how you'd use the decorator. The That said, I'm not sure whether the decorator works for parameters passed via There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, "3.9" should be replaced with the version it is deprecated in (right now it looks like "3.11"). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's fine in |
||||||||||
def tricontour(ax, *args, **kwargs): | ||||||||||
""" | ||||||||||
%(_tricontour_doc)s | ||||||||||
|
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.
By convention we import our interal helper modules this way.