From f890ef39612f1f3b7d94641f0994b249a96794a6 Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Thu, 25 Aug 2022 14:51:44 -0500 Subject: [PATCH] Fix cmap argument --- src/nexusformat/nexus/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nexusformat/nexus/plot.py b/src/nexusformat/nexus/plot.py index 157d1b8..9700a83 100644 --- a/src/nexusformat/nexus/plot.py +++ b/src/nexusformat/nexus/plot.py @@ -255,10 +255,10 @@ def plot(self, data_group, fmt=None, xmin=None, xmax=None, from pkg_resources import parse_version as pv if pv(mplversion) >= pv('3.5.0'): from matplotlib import colormaps - cm = copy.copy(colormaps[self.cmap]) + cm = copy.copy(colormaps[cmap]) else: from matplotlib.cm import get_cmap - cm = copy.copy(get_cmap(self.cmap)) + cm = copy.copy(get_cmap(cmap)) cm.set_bad(bad, 1.0) if regular: extent = (x[0], x[-1], y[0], y[-1])