From d75dab09a5cb9d6a2250349749ea7a077e9554a5 Mon Sep 17 00:00:00 2001 From: gma57 <140017072+gma57@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:39:36 -0400 Subject: [PATCH] changed mpl.cm.register_cmap() to mpl.colormaps.register() (#433) --- src/westpa/oldtools/aframe/plotting.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/westpa/oldtools/aframe/plotting.py b/src/westpa/oldtools/aframe/plotting.py index 116ab65e0..ef418aa05 100644 --- a/src/westpa/oldtools/aframe/plotting.py +++ b/src/westpa/oldtools/aframe/plotting.py @@ -66,10 +66,10 @@ cm_pdr = matplotlib.colors.LinearSegmentedColormap('pdr', _pdr_data, 2048) cm_pdr_r = cm_pdr.reversed() - matplotlib.cm.register_cmap('pdr', cm_pdr) - matplotlib.cm.register_cmap('pdr_r', cm_pdr_r) - matplotlib.cm.register_cmap('hovmol', cm_hovmol) - matplotlib.cm.register_cmap('hovmol_r', cm_hovmol_r) + matplotlib.colormaps.register(cmap=cm_pdr, name='pdr') + matplotlib.colormaps.register(cmap=cm_pdr_r, name='pdr_r') + matplotlib.colormaps.register(cmap=cm_hovmol, name='hovmol') + matplotlib.colormaps.register(cmap=cm_hovmol_r, name='hovmol_r') del cmap_data