MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / set_offset

Method set_offset

site-packages/matplotlib/offsetbox.py:784–797  ·  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

782 pass
783
784 def set_offset(self, xy):
785 """
786 Set the offset of the container.
787
788 Parameters
789 ----------
790 xy : (float, float)
791 The (x,y) coordinates of the offset in display units.
792 """
793 self._offset = xy
794
795 self.offset_transform.clear()
796 self.offset_transform.translate(xy[0], xy[1])
797 self.stale = True
798
799 def get_offset(self):
800 """

Callers 9

_set_locMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
_update_offset_funcMethod · 0.45
drawMethod · 0.45
save_offsetMethod · 0.45
update_offsetMethod · 0.45
offsetbox.pyFile · 0.45

Calls 2

clearMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected