Skip to content

Commit

Permalink
updated deprecated matplotlib colormap selection
Browse files Browse the repository at this point in the history
  • Loading branch information
orbeckst committed Jun 17, 2024
1 parent 03d3010 commit 514fe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gromacs/fileformats/xvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def set(self, a):

def _get_colors(self, color, columns):
try:
cmap = matplotlib.cm.get_cmap(color)
cmap = matplotlib.colormaps[color]
colors = cmap(
matplotlib.colors.Normalize()(
numpy.arange(len(columns[1:]), dtype=float)
Expand Down

0 comments on commit 514fe0f

Please sign in to comment.