Skip to content

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