PendingDeprecationWarning: The register_cmap function will be deprecated in a future version.
Use ``matplotlib.colormaps.register_cmap(name)`` instead.
Expected outcome
I think there's two problems here:
The function is called matplotlib.colormaps.register
The signature for that function is mpl.colormaps.register(cmap, *, name=None, force=False)
Activity
tacaswell commented on Aug 23, 2022
This is already fixed in #23710