You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where update now handles values returned by setters.
I'm wondering what the motivation is behind these setters with return values, because they are incompatible with traitlets. If traitlets integration is to continue, these returning setters will need to be deprecated.
I did that out of an abundance of caution to not change a different API. It looks like there are a handful of setters that do in fact return something.
@tacaswell by "incompatible" I mean that if returning setters where an actual feature supported by matplotlib, there are certain setters that could not be replicated using traitlets.
This kind of setter could be replicated with traitlets:
From a quick skim it looks like all of the returning setters return the same thing as their paired getter (ex set_title returns the Text object that is the title).
If there are any in the second class I am nominally 👍 on deprecating / addressing on a case-by-case basis.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
tacaswell commentedon Sep 20, 2016
Awesome you have come back to this! This went in as part of https://github.com/matplotlib/matplotlib/pull/5599/files
I did that out of an abundance of caution to not change a different API. It looks like there are a handful of setters that do in fact return something.
I do not see why they are incompatible:
but agree they should go long term.
rmorshea commentedon Sep 20, 2016
@tacaswell by "incompatible" I mean that if returning setters where an actual feature supported by matplotlib, there are certain setters that could not be replicated using traitlets.
This kind of setter could be replicated with
traitlets:However something like this could not:
tacaswell commentedon Sep 21, 2016
From a quick skim it looks like all of the returning setters return the same thing as their paired getter (ex
set_titlereturns theTextobject that is the title).If there are any in the second class I am nominally 👍 on deprecating / addressing on a case-by-case basis.
github-actions commentedon Mar 29, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!