@@ -228,8 +228,7 @@ def _check(points):
228228 if isinstance (points , np .ma .MaskedArray ):
229229 cbook ._warn_external ("Bbox bounds are a masked array." )
230230 points = np .asarray (points )
231- if (points [1 , 0 ] - points [0 , 0 ] == 0 or
232- points [1 , 1 ] - points [0 , 1 ] == 0 ):
231+ if any ((points [1 , :] - points [0 , :]) == 0 ):
233232 cbook ._warn_external ("Singular Bbox." )
234233
235234 def frozen (self ):
@@ -2170,8 +2169,8 @@ def blended_transform_factory(x_transform, y_transform):
21702169 A faster version of the blended transform is returned for the case
21712170 where both child transforms are affine.
21722171 """
2173- if (isinstance (x_transform , Affine2DBase )
2174- and isinstance (y_transform , Affine2DBase )):
2172+ if (isinstance (x_transform , Affine2DBase ) and
2173+ isinstance (y_transform , Affine2DBase )):
21752174 return BlendedAffine2D (x_transform , y_transform )
21762175 return BlendedGenericTransform (x_transform , y_transform )
21772176
@@ -2565,7 +2564,7 @@ def _revalidate(self):
25652564 # only recompute if the invalidation includes the non_affine part of
25662565 # the transform
25672566 if (self ._invalid & self .INVALID_NON_AFFINE == self .INVALID_NON_AFFINE
2568- or self ._transformed_path is None ):
2567+ or self ._transformed_path is None ):
25692568 self ._transformed_path = \
25702569 self ._transform .transform_path_non_affine (self ._path )
25712570 self ._transformed_points = \
0 commit comments