From 514fe0f70b9a8c5edc241f9258ff5ed3db70e9fe Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Sun, 16 Jun 2024 23:26:56 -0700 Subject: [PATCH] updated deprecated matplotlib colormap selection --- gromacs/fileformats/xvg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gromacs/fileformats/xvg.py b/gromacs/fileformats/xvg.py index 3e54a9a5..a2f9c767 100644 --- a/gromacs/fileformats/xvg.py +++ b/gromacs/fileformats/xvg.py @@ -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)