Skip to content

Commit

Permalink
remove cividis as default
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlam committed Aug 4, 2020
1 parent 255b28f commit 6754d38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pypulse/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ def imshow(x, ax=None, origin='lower', interpolation='nearest', aspect='auto', c
else:
cmap = None
# Try to use cividis as default colormap, otherwise viridis
if cmap is None:
if "cividis" in plt.colormaps():
cmap = plt.cm.cividis
else:
cmap = plt.cm.viridis
#if cmap is None:
# if "cividis" in plt.colormaps():
# cmap = plt.cm.cividis
# else:
# cmap = plt.cm.viridis

if ax is not None:
im = ax.imshow(x, origin=origin, interpolation=interpolation, aspect=aspect, cmap=cmap, **kwargs)
Expand Down

0 comments on commit 6754d38

Please sign in to comment.