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

Method get_matrix

lib/matplotlib/transforms.py:2736–2742  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2734 self._mtx = None
2735
2736 def get_matrix(self):
2737 if self._invalid:
2738 transformed_coords = self._trans_shift.transform([[self._theta, 0]])[0]
2739 adjusted_theta = transformed_coords[0]
2740 rotation = Affine2D().rotate(adjusted_theta)
2741 self._mtx = rotation.get_matrix()
2742 return self._mtx
2743
2744
2745class AffineDeltaTransform(Affine2DBase):

Callers

nothing calls this directly

Calls 4

Affine2DClass · 0.85
transformMethod · 0.45
rotateMethod · 0.45
get_matrixMethod · 0.45

Tested by

no test coverage detected