Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c8f598

Browse files
author
Jeff Whitaker
committed
fix to previous fix (it was inverted).
svn path=/trunk/matplotlib/; revision=2077
1 parent 2354acb commit 9c8f598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def __call__(self, value):
656656
else:
657657
if self.clip:
658658
val = clip(val.filled(vmax), vmin, vmax)
659-
result = (val-vmin)/(vmax-vmin)
659+
result = (vmax-vmin)/(val-vmin)
660660
if vtype == 'scalar':
661661
result = result[0]
662662
return result

0 commit comments

Comments
 (0)