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

Method _get_rotation_transform

lib/matplotlib/widgets.py:3736–3742  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3734 self._aspect_ratio_correction = aspect_ratio
3735
3736 def _get_rotation_transform(self):
3737 aspect_ratio = self.ax._get_aspect_ratio()
3738 return Affine2D().translate(-self.center[0], -self.center[1]) \
3739 .scale(1, aspect_ratio) \
3740 .rotate(self._rotation) \
3741 .scale(1, 1 / aspect_ratio) \
3742 .translate(*self.center)
3743
3744 @property
3745 def corners(self):

Callers 3

_onmoveMethod · 0.95
cornersMethod · 0.95
edge_centersMethod · 0.95

Calls 5

Affine2DClass · 0.85
_get_aspect_ratioMethod · 0.80
translateMethod · 0.80
scaleMethod · 0.45
rotateMethod · 0.45

Tested by

no test coverage detected