@@ -1418,24 +1418,29 @@ def contains_branch(self, other):
14181418 return True
14191419 return False
14201420
1421- def contains_branch_seperately (self , other_transform ):
1421+ def contains_branch_separately (self , other_transform ):
14221422 """
14231423 Return whether the given branch is a sub-tree of this transform on
14241424 each separate dimension.
14251425
14261426 A common use for this method is to identify if a transform is a blended
14271427 transform containing an Axes' data transform. e.g.::
14281428
1429- x_isdata, y_isdata = trans.contains_branch_seperately (ax.transData)
1429+ x_isdata, y_isdata = trans.contains_branch_separately (ax.transData)
14301430
14311431 """
14321432 if self .output_dims != 2 :
1433- raise ValueError ('contains_branch_seperately only supports '
1433+ raise ValueError ('contains_branch_separately only supports '
14341434 'transforms with 2 output dimensions' )
14351435 # for a non-blended transform each separate dimension is the same, so
14361436 # just return the appropriate shape.
14371437 return (self .contains_branch (other_transform ), ) * 2
14381438
1439+ # Permanent alias for backwards compatibility (historical typo)
1440+ def contains_branch_seperately (self , other_transform ):
1441+ """:meta private:"""
1442+ return self .contains_branch_separately (other_transform )
1443+
14391444 def __sub__ (self , other ):
14401445 """
14411446 Compose *self* with the inverse of *other*, cancelling identical terms
@@ -2185,7 +2190,7 @@ def __eq__(self, other):
21852190 else :
21862191 return NotImplemented
21872192
2188- def contains_branch_seperately (self , transform ):
2193+ def contains_branch_separately (self , transform ):
21892194 return (self ._x .contains_branch (transform ),
21902195 self ._y .contains_branch (transform ))
21912196
@@ -2411,14 +2416,14 @@ def _iter_break_from_left_to_right(self):
24112416 for left , right in self ._b ._iter_break_from_left_to_right ():
24122417 yield self ._a + left , right
24132418
2414- def contains_branch_seperately (self , other_transform ):
2419+ def contains_branch_separately (self , other_transform ):
24152420 # docstring inherited
24162421 if self .output_dims != 2 :
2417- raise ValueError ('contains_branch_seperately only supports '
2422+ raise ValueError ('contains_branch_separately only supports '
24182423 'transforms with 2 output dimensions' )
24192424 if self == other_transform :
24202425 return (True , True )
2421- return self ._b .contains_branch_seperately (other_transform )
2426+ return self ._b .contains_branch_separately (other_transform )
24222427
24232428 depth = property (lambda self : self ._a .depth + self ._b .depth )
24242429 is_affine = property (lambda self : self ._a .is_affine and self ._b .is_affine )
0 commit comments