-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[MNT]: Remove axis parameter from scales #29349
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
Labels
Comments
timhoffm
added a commit
to timhoffm/matplotlib
that referenced
this issue
Dec 20, 2024
timhoffm
added a commit
to timhoffm/matplotlib
that referenced
this issue
Dec 29, 2024
timhoffm
added a commit
to timhoffm/matplotlib
that referenced
this issue
Dec 29, 2024
timhoffm
added a commit
to timhoffm/matplotlib
that referenced
this issue
Dec 29, 2024
timhoffm
added a commit
to timhoffm/matplotlib
that referenced
this issue
Dec 30, 2024
Downstream libraries: there's at least https://github.com/matplotlib/mpl-probscale. |
Yes, and some other usage, which means we'll take it slow through the full deprecation machinery, including a pending deprecation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
For historic reasons, Scales take the axis as the first parameter. It's use is discouraged and none of our own scales actually use it at least since #12831.
To simplify our code, we should get rid of that parameter.
Proposed fix
Do we know whether
register_scale()
?If so we need the full deprecation machinery:
scale_factory
work with scales have or have not an initialaxis
parameter. Either by try-except with/without this parameter or by introspecting the signature.register_scale
and warn if they still have the axis argument.axis
parameter by adding a suitable decorator to their init functions.Otherwise, we can simplify the transition.
--
Edit: Both questions are yes, so we need the full deprecation mechanism.
The text was updated successfully, but these errors were encountered: