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

Method transform_affine

lib/matplotlib/transforms.py:1566–1590  ·  view source on GitHub ↗

Apply only the affine part of this transformation on the given array of values. ``transform(values)`` is always equivalent to ``transform_affine(transform_non_affine(values))``. In non-affine transformations, this is generally a no-op. In affine tr

(self, values)

Source from the content-addressed store, hash-verified

1564 .format(dims=self.input_dims))
1565
1566 def transform_affine(self, values):
1567 """
1568 Apply only the affine part of this transformation on the
1569 given array of values.
1570
1571 ``transform(values)`` is always equivalent to
1572 ``transform_affine(transform_non_affine(values))``.
1573
1574 In non-affine transformations, this is generally a no-op. In
1575 affine transformations, this is equivalent to
1576 ``transform(values)``.
1577
1578 Parameters
1579 ----------
1580 values : array
1581 The input values as an array of length :attr:`~Transform.input_dims` or
1582 shape (N, :attr:`~Transform.input_dims`).
1583
1584 Returns
1585 -------
1586 array
1587 The output values as an array of length :attr:`~Transform.output_dims` or
1588 shape (N, :attr:`~Transform.output_dims`), depending on the input.
1589 """
1590 return self.get_affine().transform(values)
1591
1592 def transform_non_affine(self, values):
1593 """

Callers 3

transformMethod · 0.95

Calls 2

get_affineMethod · 0.95
transformMethod · 0.45

Tested by 2