Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make signature of Axes.annotate() more explicit. #22388

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

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Feb 3, 2022

The signature is identical to Annotation. This makes the parameters
explicit instead of *args, which improves usability. On the downside,
this introduces redundancy. But we can bear that. The signature will
not change often and I've added a test that ensures the signatures
stay synchronized.

@timhoffm timhoffm added this to the v3.6.0 milestone Feb 3, 2022
@timhoffm timhoffm force-pushed the annotate-explicit-params branch from d6c1d4c to 03344dd Compare February 3, 2022 22:54
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

You also need to regenerate pyplot.py

The signature is identical to Annotation. This makes the parameters
explicit instead of `*args`, which improves usability. On the downside,
this introduces redundancy. But we can bear that. The signature will
not change often and I've added a test that ensures the signatures
stay synchronized.
@timhoffm timhoffm force-pushed the annotate-explicit-params branch from 03344dd to c4116bb Compare February 4, 2022 21:01
@QuLogic QuLogic merged commit d82a61f into matplotlib:main Feb 8, 2022
@timhoffm timhoffm deleted the annotate-explicit-params branch February 8, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants