Skip to content

Commit

Permalink
Merge pull request #16151 from anntzer/trblend
Browse files Browse the repository at this point in the history
Remove outdated comment re: blended transforms.
  • Loading branch information
NelleV committed Jan 8, 2020
2 parents f38dfa1 + ac19fb1 commit 262c67f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/matplotlib/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,16 +2124,13 @@ class BlendedGenericTransform(_BlendedMixin, Transform):

def __init__(self, x_transform, y_transform, **kwargs):
"""
Create a new "blended" transform using *x_transform* to
transform the *x*-axis and *y_transform* to transform the
*y*-axis.
Create a new "blended" transform using *x_transform* to transform the
*x*-axis and *y_transform* to transform the *y*-axis.
You will generally not call this constructor directly but use the
`blended_transform_factory` function instead, which can determine
automatically which kind of blended transform to create.
"""
# Here we ask: "Does it blend?"

Transform.__init__(self, **kwargs)
self._x = x_transform
self._y = y_transform
Expand Down Expand Up @@ -2218,12 +2215,10 @@ class BlendedAffine2D(_BlendedMixin, Affine2DBase):

def __init__(self, x_transform, y_transform, **kwargs):
"""
Create a new "blended" transform using *x_transform* to
transform the *x*-axis and *y_transform* to transform the
*y*-axis.
Create a new "blended" transform using *x_transform* to transform the
*x*-axis and *y_transform* to transform the *y*-axis.
Both *x_transform* and *y_transform* must be 2D affine
transforms.
Both *x_transform* and *y_transform* must be 2D affine transforms.
You will generally not call this constructor directly but use the
`blended_transform_factory` function instead, which can determine
Expand Down

0 comments on commit 262c67f

Please sign in to comment.