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