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

Method _offset_transform

lib/matplotlib/patheffects.py:34–37  ·  view source on GitHub ↗

Apply the offset to the given transform.

(self, renderer)

Source from the content-addressed store, hash-verified

32 self._offset = offset
33
34 def _offset_transform(self, renderer):
35 """Apply the offset to the given transform."""
36 return mtransforms.Affine2D().translate(
37 *map(renderer.points_to_pixels, self._offset))
38
39 def _update_gc(self, gc, new_gc_dict):
40 """

Callers 5

draw_pathMethod · 0.80
draw_pathMethod · 0.80
draw_pathMethod · 0.80
draw_pathMethod · 0.80
draw_pathMethod · 0.80

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected