Skip to content

Commit

Permalink
properly connected cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlam committed Aug 4, 2020
1 parent 3549f41 commit 255b28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypulse/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def imshow(x, ax=None, origin='lower', interpolation='nearest', aspect='auto', c
cmap = plt.cm.viridis

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

'''
Expand Down

0 comments on commit 255b28f

Please sign in to comment.