-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate matplotlib.cm.LUTSIZE #20806
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
Conversation
lib/matplotlib/cm.py
Outdated
@@ -23,10 +23,20 @@ | |||
import matplotlib as mpl | |||
from matplotlib import _api, colors, cbook | |||
from matplotlib._cm import datad | |||
import functools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This belongs with collections.abc
in the standard library import block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anybody is welcome to fix this and force-push. I won't be able to do it myself for a couple more days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So playing with the new codespaces, review comments on branches that have PRs are inline which is pretty nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the "mpl contributors can push to my PR branch" ACL does not seem to be forwarded yet. Oh well.
c4d0717
to
0a911e2
Compare
and rebased. |
we can directly use `mpl.rcParams['image.lut']`.
0a911e2
to
015985f
Compare
Third times the charm, hopefully all of our CI systems have auto-kill setup. |
PR matplotlib#20806 added another instance of a module-level `__getattr__` function that was missing a final `raise AttributeError` to catch unknown attributes. This is the same kind of bug as matplotlib#20822. See also astropy/astropy#12038.
we can directly use
mpl.rcParams['image.lut']
.