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

Skip to content

Commit dce0739

Browse files
committed
fixed an alpha colormapping bug posted on sf 2832575
svn path=/branches/v0_99_maint/; revision=7395
1 parent 0cfc45d commit dce0739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def __call__(self, X, alpha=1.0, bytes=False):
488488
if not self._isinit: self._init()
489489
alpha = min(alpha, 1.0) # alpha must be between 0 and 1
490490
alpha = max(alpha, 0.0)
491-
self._lut[:-3, -1] = alpha
491+
self._lut[:,-1] = alpha
492492
mask_bad = None
493493
if not cbook.iterable(X):
494494
vtype = 'scalar'

0 commit comments

Comments
 (0)