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 :func:`blended_transform_factory` function instead, which ca
(self, x_transform, y_transform, **kwargs)
| 2142 | pass_through = True |
| 2143 | |
| 2144 | def __init__(self, x_transform, y_transform, **kwargs): |
| 2145 | """ |
| 2146 | Create a new "blended" transform using *x_transform* to |
| 2147 | transform the *x*-axis and *y_transform* to transform the |
| 2148 | *y*-axis. |
| 2149 | |
| 2150 | You will generally not call this constructor directly but use |
| 2151 | the :func:`blended_transform_factory` function instead, which |
| 2152 | can determine automatically which kind of blended transform to |
| 2153 | create. |
| 2154 | """ |
| 2155 | # Here we ask: "Does it blend?" |
| 2156 | |
| 2157 | Transform.__init__(self, **kwargs) |
| 2158 | self._x = x_transform |
| 2159 | self._y = y_transform |
| 2160 | self.set_children(x_transform, y_transform) |
| 2161 | self._affine = None |
| 2162 | |
| 2163 | def __eq__(self, other): |
| 2164 | # Note, this is an exact copy of BlendedAffine2D.__eq__ |
nothing calls this directly
no test coverage detected