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

Skip to content

Fix ToolBase.figure property setter. #26591

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
Aug 24, 2023
Merged

Fix ToolBase.figure property setter. #26591

merged 1 commit into from
Aug 24, 2023

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Aug 24, 2023

The property must be defined to use self.set_figure as the setter, and not the other way round; otherwise, subclasses that override set_figure (such as ToolToggleBase) won't override the setter on the property.

PR summary

PR checklist

The property must be defined to use self.set_figure as the setter, and
not the other way round; otherwise, subclasses that override set_figure
(such as ToolToggleBase) won't override the setter on the property.
@anntzer anntzer added the MEP: MEP22 tool manager label Aug 24, 2023
@timhoffm timhoffm added this to the v3.8.0 milestone Aug 24, 2023
@timhoffm timhoffm merged commit 1cb514d into matplotlib:main Aug 24, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 24, 2023
@anntzer anntzer deleted the tsf branch August 24, 2023 22:04
QuLogic added a commit that referenced this pull request Aug 24, 2023
…591-on-v3.8.x

Backport PR #26591 on branch v3.8.x (Fix ToolBase.figure property setter.)
@ksunden ksunden mentioned this pull request Sep 15, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MEP: MEP22 tool manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants