NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

Bug introduced in matplotlib versions ``>=3.9`` #632

Closed evrose54 closed 2 weeks ago

evrose54 commented 2 weeks ago

Requested Update

Description

In colormapper matplotlib_linear_norm we use a function call matplotlib.cm.get_cmap which no longer works. If you look at matplotlib's documentation for that function, it still exists, which is quite weird. Luckily this function exists in two locations so we can just refactor to the other use case, which is maplotlib.pyplot.get_cmap.

This issue posted by @jsolbrig explains it in more detail.

Alternative Solutions

We can either:

Code to demonstrate issue

geoips.plugins.modules.colormappers.matplotlib_linear_norm:call

Checklist for Completion