MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / blended_transform_factory

Function blended_transform_factory

lib/matplotlib/transforms.py:2377–2388  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

2375
2376
2377def 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
2391class CompositeGenericTransform(Transform):

Callers 4

_get_xy_transformMethod · 0.90
zoom_effect02Function · 0.90
frozenMethod · 0.85

Calls 2

BlendedAffine2DClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…