-
Notifications
You must be signed in to change notification settings - Fork 54
Fix matplotlib v3.9 colormaps #2688
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
Relevant cctbx PR: cctbx/cctbx_project#894. It's 2 am at the west coast right now so I might be wrong, but IIRC I finally settled on the other accessor as syntax |
Ah, thanks |
Looks like |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2688 +/- ##
==========================================
- Coverage 78.15% 78.15% -0.01%
==========================================
Files 616 616
Lines 76589 76588 -1
Branches 10980 10980
==========================================
- Hits 59858 59855 -3
- Misses 14491 14492 +1
- Partials 2240 2241 +1 |
@dagewa I share your sentiment and, personally, dislike the need to support old installations (cctbx being an extreme case of sticking to Python 2); I just say that because I feel the need to note that in case someone is working on a late 2021 / early 2022 installation and updates codebase only (or some other stuff that people do), this will break their code since this syntax was introduced in November 2021. Other than that I am all in and happy for you that you can use this new smooth syntax :). |
Fix for "matplotlib.cm has no attribute get_cmap"
Change previously deprecated
matplotlib.cm.get_cmap(cmap)
calls tomatplotlib.colormaps[cmap]