Create a new "blended" transform using *x_transform* to transform the *x*-axis and *y_transform* to transform the *y*-axis. A faster version of the blended transform is returned for the case where both child transforms are affine.
(x_transform, y_transform)
| 2375 | |
| 2376 | |
| 2377 | def blended_transform_factory(x_transform, y_transform): |
| 2378 | """ |
| 2379 | Create a new "blended" transform using *x_transform* to transform |
| 2380 | the *x*-axis and *y_transform* to transform the *y*-axis. |
| 2381 | |
| 2382 | A faster version of the blended transform is returned for the case |
| 2383 | where both child transforms are affine. |
| 2384 | """ |
| 2385 | if (isinstance(x_transform, Affine2DBase) and |
| 2386 | isinstance(y_transform, Affine2DBase)): |
| 2387 | return BlendedAffine2D(x_transform, y_transform) |
| 2388 | return BlendedGenericTransform(x_transform, y_transform) |
| 2389 | |
| 2390 | |
| 2391 | class CompositeGenericTransform(Transform): |
no test coverage detected
searching dependent graphs…