Skip to content

Commit 6e9fe63

Browse files
committed
fix check
1 parent ca00835 commit 6e9fe63

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
@@ -1391,7 +1391,7 @@ def autoscale_None(self, A):
13911391
"""If vmin or vmax are not set, use the min/max of *A* to set them."""
13921392
A = np.asanyarray(A)
13931393

1394-
if isinstance(A, np.ma.MaskedArray) and A.mask is False:
1394+
if isinstance(A, np.ma.MaskedArray) and not A.mask:
13951395
A = A.data
13961396

13971397
if self.vmin is None and A.size:

0 commit comments

Comments
 (0)