Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BrunoWolf03 wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromBrunoWolf03:main

Conversation

BrunoWolf03
Copy link

As recommended by@rcomer i just used the decorator to take care of the issue.

Comment on lines +3 to 4
from matplotlib._api.deprecation import delete_parameter
from matplotlib import _docstring
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
frommatplotlib._api.deprecationimportdelete_parameter
frommatplotlibimport_docstring
frommatplotlibimport_api,_docstring

By convention we import our interal helper modules this way.

Comment on lines +223 to +225
@delete_parameter("3.9", "tricontour", "origin")
@delete_parameter("3.9", "tricontour", "extent")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
@delete_parameter("3.9","tricontour","origin")
@delete_parameter("3.9","tricontour","extent")
@_api.delete_parameter("3.9","origin")
@_api.delete_parameter("3.9","extent")

This is how you'd use the decorator. Thefunc parameter is not passed in explicitly but comes from the decoration.

That said, I'm not sure whether the decorator works for parameters passed via**kwargs.

Copy link
Member

Choose a reason for hiding this comment

The 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").

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That said, I'm not sure whether the decorator works for parameters passed via**kwargs.

It's fine in**kwargs, at least by documentation.

timhoffm reacted with thumbs up emoji
@oscargus
Copy link
Member

Also, tricontourf should have the same thing and there should be a deprecation note, seehttps://matplotlib.org/devdocs/devel/api_changes.html#announce-changes-deprecations-and-new-features (the fourth checkmark).

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@timhoffmtimhoffmtimhoffm left review comments

@oscargusoscargusoscargus left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
Status: Waiting for author
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@BrunoWolf03@oscargus@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp