register_cmap has been deprecated by matplotlib, changing it as described here:
MatplotlibDeprecationWarning: The register_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps.register(name)`` instead.
Description
register_cmap has been deprecated by matplotlib, changing it as described here: