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

Method transform_point

lib/matplotlib/transforms.py:1637–1651  ·  view source on GitHub ↗

Return a transformed point. This function is only kept for backcompatibility; the more general `.transform` method is capable of transforming both a list of points and a single point. The point is given as a sequence of length :attr:`input_dims`. Th

(self, point)

Source from the content-addressed store, hash-verified

1635 return self.get_affine().get_matrix()
1636
1637 def transform_point(self, point):
1638 """
1639 Return a transformed point.
1640
1641 This function is only kept for backcompatibility; the more general
1642 `.transform` method is capable of transforming both a list of points
1643 and a single point.
1644
1645 The point is given as a sequence of length :attr:`input_dims`.
1646 The transformed point is returned as a sequence of length
1647 :attr:`output_dims`.
1648 """
1649 if len(point) != self.input_dims:
1650 raise ValueError("The length of 'point' must be 'self.input_dims'")
1651 return self.transform(point)
1652
1653 def transform_path(self, path):
1654 """

Callers 2

test_axline_small_slopeFunction · 0.80
test_pickingFunction · 0.80

Calls 1

transformMethod · 0.95

Tested by 2

test_axline_small_slopeFunction · 0.64
test_pickingFunction · 0.64