[x] Required existing tests pass (ie full_test.sh, others as appropriate)
[x] NO REQUIRED unit tests (explain why not required)
[x] NO REQUIRED integration tests (explain why not required)
[x] NO REQUIRED documentation (explain why not required)
[x] Required release notes added for new/modified functionalitye
[x] NO REQUIRED updates to other repos (explain why not required)
Related Issues
fixes NRLMMD-GEOIPS/geoips#632
Testing Instructions
I only tested on ./base_test.sh and will run ./full_test.sh once I can find the time.
Summary
Prior to matplotlib versions >=3.9 we were able to use matplotlib.cm.get_cmap
without any problem. After 3.9 was introduced, this failed because
cm had no attribute called 'get_cmap'. To fix this, we've migrated such calls from
cm.get_cmap to pyplot.get_cmap, as that function still works for pyplot. It's
weird that the same functionality was located in two different places, but at least it
makes for an easy fix.
Reviewer Checklist
Related Issues
fixes NRLMMD-GEOIPS/geoips#632
Testing Instructions
I only tested on
./base_test.sh
and will run./full_test.sh
once I can find the time.Summary
Prior to matplotlib versions
>=3.9
we were able to usematplotlib.cm.get_cmap
without any problem. After 3.9 was introduced, this failed becausecm had no attribute called 'get_cmap'
. To fix this, we've migrated such calls fromcm.get_cmap
topyplot.get_cmap
, as that function still works for pyplot. It's weird that the same functionality was located in two different places, but at least it makes for an easy fix.