8000 Some more micro optimizations by oscargus · Pull Request #26344 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Some more micro optimizations #26344

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
Jul 19, 2023
Merged

Some more micro optimizations #26344

merged 1 commit into from
Jul 19, 2023

Conversation

oscargus
Copy link
Member

PR summary

PR checklist

@@ -72,7 +72,7 @@ def __init__(self, *,
joinstyle = JoinStyle.miter

self._hatch_color = colors.to_rgba(mpl.rcParams['hatch.color'])
self._fill = True # needed for set_facecolor call
self._fill = fill # needed for set_facecolor call
Copy link
Contributor
@scottshambaugh scottshambaugh Jul 18, 2023

Choose a reason for hiding this comment

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

Nitpick: to match previous behavior from set_fill, this should be bool(fill). But I'm not convinced we should be forcing a cast like that anyways.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well spotted! Fixed.

It is indeed a bit inconsistent over methods if arguments are casted to bool or not...

@QuLogic QuLogic added this to the v3.8.0 milestone Jul 19, 2023
@QuLogic QuLogic merged commit 2aee6cc into matplotlib:main Jul 19, 2023
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
0