Skip to content

Commit

Permalink
changed mpl.cm.register_cmap() to mpl.colormaps.register() (westpa#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
gma57 authored Jul 2, 2024
1 parent a5e0259 commit d75dab0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/westpa/oldtools/aframe/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d75dab0

Please sign in to comment.