Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca00835 commit 6e9fe63Copy full SHA for 6e9fe63
1 file changed
lib/matplotlib/colors.py
@@ -1391,7 +1391,7 @@ def autoscale_None(self, A):
1391
"""If vmin or vmax are not set, use the min/max of *A* to set them."""
1392
A = np.asanyarray(A)
1393
1394
- if isinstance(A, np.ma.MaskedArray) and A.mask is False:
+ if isinstance(A, np.ma.MaskedArray) and not A.mask:
1395
A = A.data
1396
1397
if self.vmin is None and A.size:
0 commit comments