Skip to content

Commit

Permalink
Use masked val, not values
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhdu committed Feb 24, 2015
1 parent 8242223 commit 1572257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/colors.py
Expand Up @@ -1198,7 +1198,7 @@ def inverse(self, value):

if cbook.iterable(value):
val = ma.asarray(value)
return ma.power(value, 1. / gamma) * (vmax - vmin) + vmin
return ma.power(val, 1. / gamma) * (vmax - vmin) + vmin
else:
return pow(value, 1. / gamma) * (vmax - vmin) + vmin

Expand Down

0 comments on commit 1572257

Please sign in to comment.