Skip to content

Commit

Permalink
Merge pull request #177 from rayosborn/fix-cmap
Browse files Browse the repository at this point in the history
Fix cmap argument
  • Loading branch information
rayosborn authored Aug 25, 2022
2 parents 82d1ee5 + f890ef3 commit 76d2684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nexusformat/nexus/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 76d2684

Please sign in to comment.