Skip to content

Commit b006d39

Browse files
committed
Fixed one more place needing getmaskorNone
svn path=/trunk/matplotlib/; revision=1978
1 parent b296ed3 commit b006d39

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
@@ -504,7 +504,7 @@ def __call__(self, X, alpha=1.0):
504504
vtype = 'array'
505505
xma = ma.asarray(X)
506506
xa = xma.filled(0)
507-
mask_bad = ma.getmask(xma)
507+
mask_bad = ma.getmaskorNone(xma)
508508
if typecode(xa) in typecodes['Float']:
509509
xa = where(xa == 1.0, 0.9999999, xa) # Tweak so 1.0 is in range.
510510
xa = (xa * self.N).astype(Int)

0 commit comments

Comments
 (0)