Skip to content

Commit

Permalink
Correct issue with Powernorm Clip
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Feb 1, 2015
1 parent 571091b commit e2c4219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,8 @@ def __call__(self, value, clip=None):
res_mask = result.data < 0
if clip:
mask = ma.getmask(result)
val = ma.array(np.clip(result.filled(vmax), vmin, vmax),
mask=mask)
result = ma.array(np.clip(result.filled(vmax), vmin, vmax),
mask=mask)
resdat = result.data
resdat -= vmin
np.power(resdat, gamma, resdat)
Expand Down

0 comments on commit e2c4219

Please sign in to comment.