From ac19fb16203099c55627ee312936e1ca81b54ca5 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 7 Jan 2020 23:49:22 +0100 Subject: [PATCH] Remove outdated comment re: blended transforms. ... and rewrap some docstrings to make them shorter. --- lib/matplotlib/transforms.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/matplotlib/transforms.py b/lib/matplotlib/transforms.py index 4a2fe74462f0..5021252a5e88 100644 --- a/lib/matplotlib/transforms.py +++ b/lib/matplotlib/transforms.py @@ -2123,16 +2123,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 @@ -2217,12 +2214,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