Skip to content

Commit ac19fb1

Browse files
committed
Remove outdated comment re: blended transforms.
... and rewrap some docstrings to make them shorter.
1 parent 3218b11 commit ac19fb1

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lib/matplotlib/transforms.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,16 +2123,13 @@ class BlendedGenericTransform(_BlendedMixin, Transform):
21232123

21242124
def __init__(self, x_transform, y_transform, **kwargs):
21252125
"""
2126-
Create a new "blended" transform using *x_transform* to
2127-
transform the *x*-axis and *y_transform* to transform the
2128-
*y*-axis.
2126+
Create a new "blended" transform using *x_transform* to transform the
2127+
*x*-axis and *y_transform* to transform the *y*-axis.
21292128
21302129
You will generally not call this constructor directly but use the
21312130
`blended_transform_factory` function instead, which can determine
21322131
automatically which kind of blended transform to create.
21332132
"""
2134-
# Here we ask: "Does it blend?"
2135-
21362133
Transform.__init__(self, **kwargs)
21372134
self._x = x_transform
21382135
self._y = y_transform
@@ -2217,12 +2214,10 @@ class BlendedAffine2D(_BlendedMixin, Affine2DBase):
22172214

22182215
def __init__(self, x_transform, y_transform, **kwargs):
22192216
"""
2220-
Create a new "blended" transform using *x_transform* to
2221-
transform the *x*-axis and *y_transform* to transform the
2222-
*y*-axis.
2217+
Create a new "blended" transform using *x_transform* to transform the
2218+
*x*-axis and *y_transform* to transform the *y*-axis.
22232219
2224-
Both *x_transform* and *y_transform* must be 2D affine
2225-
transforms.
2220+
Both *x_transform* and *y_transform* must be 2D affine transforms.
22262221
22272222
You will generally not call this constructor directly but use the
22282223
`blended_transform_factory` function instead, which can determine

0 commit comments

Comments
 (0)