@@ -1417,7 +1417,7 @@ def __call__(self, values, clip=None):
1417
1417
if clip is None :
1418
1418
clip = [self .norm1 .clip , self .norm2 .clip ]
1419
1419
1420
- return np .array ([self .norm1 (values [0 ], clip = clip [0 ]),
1420
+ return np .asarray ([self .norm1 (values [0 ], clip = clip [0 ]),
1421
1421
self .norm2 (values [1 ], clip = clip [1 ])])
1422
1422
1423
1423
def inverse (self , values ):
@@ -1434,6 +1434,22 @@ def inverse(self, values):
1434
1434
return np .asarray ([self .norm1 .inverse (values [0 ]),
1435
1435
self .norm2 .inverse (values [1 ])])
1436
1436
1437
+ def autoscale (self , A ):
1438
+ """
1439
+ Set *vmin*, *vmax* to min, max of *A*.
1440
+ """
1441
+ self .norm1 .autoscale (A [0 ])
1442
+ self .norm2 .autoscale (A [1 ])
1443
+
1444
+ def autoscale_None (self , A ):
1445
+ 'autoscale only None-valued vmin or vmax'
1446
+ self .norm1 .autoscale_None (A [0 ])
1447
+ self .norm2 .autoscale_None (A [1 ])
1448
+
1449
+ def scaled (self ):
1450
+ 'return true if vmin and vmax set for both normalizers'
1451
+ return self .norm1 .scaled () and self .norm2 .scaled ()
1452
+
1437
1453
1438
1454
def rgb_to_hsv (arr ):
1439
1455
"""
0 commit comments