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:
Downgrade to matplotlib versions <3.9
Change matplotlib.cm.get_cmap to matplotlib.pyplot.get_cmap
Requested Update
Description
In colormapper
matplotlib_linear_norm
we use a function callmatplotlib.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 ismaplotlib.pyplot.get_cmap
.This issue posted by @jsolbrig explains it in more detail.
Alternative Solutions
We can either:
<3.9
matplotlib.cm.get_cmap
tomatplotlib.pyplot.get_cmap
Code to demonstrate issue
geoips.plugins.modules.colormappers.matplotlib_linear_norm:call
Checklist for Completion
matplotlib.cm.get_cmap
withmatplotlib.pyplot.get_cmap