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

Method set_offset

lib/matplotlib/offsetbox.py:778–790  ·  view source on GitHub ↗

Set the offset of the container. Parameters ---------- xy : (float, float) The (x, y) coordinates of the offset in display units.

(self, xy)

Source from the content-addressed store, hash-verified

776 """
777
778 def set_offset(self, xy):
779 """
780 Set the offset of the container.
781
782 Parameters
783 ----------
784 xy : (float, float)
785 The (x, y) coordinates of the offset in display units.
786 """
787 self._offset = xy
788 self.offset_transform.clear()
789 self.offset_transform.translate(xy[0], xy[1])
790 self.stale = True
791
792 def get_offset(self):
793 """Return offset of the container."""

Callers 7

_set_locMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
update_positionsMethod · 0.45
save_offsetMethod · 0.45
update_offsetMethod · 0.45

Calls 2

translateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected