diff --git a/echopype/visualize/cm.py b/echopype/visualize/cm.py index 99fa899347..15199169bd 100644 --- a/echopype/visualize/cm.py +++ b/echopype/visualize/cm.py @@ -68,7 +68,7 @@ def _create_cmap(rgb, under=None, over=None): if 'over' in colors_d: reg_map.set_over(colors_d['over']) - mpl.cm.register_cmap(cmap=reg_map) + mpl.colormaps.register(cmap=reg_map) # Register the reversed map reg_map_r = mpl.colors.ListedColormap( @@ -79,7 +79,7 @@ def _create_cmap(rgb, under=None, over=None): if 'over' in colors_d: reg_map_r.set_under(colors_d['over']) - mpl.cm.register_cmap(cmap=reg_map_r) + mpl.colormaps.register(cmap=reg_map_r) # make colormaps available to call locals().update(cmap_d) diff --git a/setup.cfg b/setup.cfg index eaf86af608..16d5526c22 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,5 +35,5 @@ setup_requires = [options.extras_require] plot = - matplotlib + matplotlib>=3.7 cmocean