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

Skip to content

Use _val_or_rc in more places #29354

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
Dec 20, 2024
Merged

Use _val_or_rc in more places #29354

merged 1 commit into from
Dec 20, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Dec 20, 2024

PR summary

In some cases where the variable was not used again, I assigned directly to the final variable/attribute. But most of the changes are to the same variables.

PR checklist

@@ -154,12 +138,12 @@ def __init__(
self.tick1line = mlines.Line2D(
[], [],
color=color, linestyle="none", zorder=zorder, visible=tick1On,
markeredgecolor=color, markersize=size, markeredgewidth=width,
markeredgecolor=color, markersize=self._size, markeredgewidth=self._width,
Copy link
Member

Choose a reason for hiding this comment

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

This may be a behavior change (size might have been None, in which case the default was previously resolved in Line2D, but I believe this here is more correct.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, size was replaced in the earlier version, too; I just inlined to the final attribute here instead.

@greglucas greglucas merged commit cd6fb82 into matplotlib:main Dec 20, 2024
38 checks passed
@QuLogic QuLogic deleted the val-or-rc branch December 20, 2024 21:33
@QuLogic QuLogic added this to the v3.11.0 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants