File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1371,9 +1371,8 @@ def inverse(self, value):
1371
1371
1372
1372
def autoscale (self , A ):
1373
1373
"""Set *vmin*, *vmax* to min, max of *A*."""
1374
- A = np .asanyarray (A )
1375
- self .vmin = A .min ()
1376
- self .vmax = A .max ()
1374
+ self .vmin = self .vmax = None
1375
+ self .autoscale_None (A )
1377
1376
1378
1377
def autoscale_None (self , A ):
1379
1378
"""If vmin or vmax are not set, use the min/max of *A* to set them."""
@@ -1715,14 +1714,8 @@ def inverse(self, value):
1715
1714
.reshape (np .shape (value )))
1716
1715
return value [0 ] if is_scalar else value
1717
1716
1718
- def autoscale (self , A ):
1719
- # i.e. A[np.isfinite(...)], but also for non-array A's
1720
- in_trf_domain = np .extract (np .isfinite (self ._trf .transform (A )), A )
1721
- if in_trf_domain .size == 0 :
1722
- in_trf_domain = np .ma .masked
1723
- return super ().autoscale (in_trf_domain )
1724
-
1725
1717
def autoscale_None (self , A ):
1718
+ # i.e. A[np.isfinite(...)], but also for non-array A's
1726
1719
in_trf_domain = np .extract (np .isfinite (self ._trf .transform (A )), A )
1727
1720
if in_trf_domain .size == 0 :
1728
1721
in_trf_domain = np .ma .masked
You can’t perform that action at this time.
0 commit comments