@@ -179,9 +179,16 @@ def contains(self, mouseevent):
179179
180180 def set_offset (self , xy ):
181181 """
182- Set the offset
182+ Set the offset.
183183
184- accepts x, y, tuple, or a callable object.
184+ Parameters
185+ ----------
186+ xy : (float, float) or callable
187+ The (x,y) coordinates of the offset in display units.
188+ A callable must have the signature::
189+
190+ def offset(width, height, xdescent, ydescent, renderer) \
191+ -> (float, float)
185192 """
186193 self ._offset = xy
187194 self .stale = True
@@ -602,9 +609,12 @@ def set_transform(self, t):
602609
603610 def set_offset (self , xy ):
604611 """
605- set offset of the container.
612+ Set the offset of the container.
606613
607- Accept : tuple of x,y coordinate in display units.
614+ Parameters
615+ ----------
616+ xy : (float, float)
617+ The (x,y) coordinates of the offset in display units.
608618 """
609619 self ._offset = xy
610620
@@ -773,9 +783,12 @@ def set_transform(self, t):
773783
774784 def set_offset (self , xy ):
775785 """
776- set offset of the container.
786+ Set the offset of the container.
777787
778- Accept : tuple of x,y coordinates in display units.
788+ Parameters
789+ ----------
790+ xy : (float, float)
791+ The (x,y) coordinates of the offset in display units.
779792 """
780793 self ._offset = xy
781794
@@ -891,9 +904,12 @@ def set_transform(self, t):
891904
892905 def set_offset (self , xy ):
893906 """
894- set offset of the container.
907+ Set the offset of the container.
895908
896- Accept : tuple of x,y coordinate in display units.
909+ Parameters
910+ ----------
911+ xy : (float, float)
912+ The (x,y) coordinates of the offset in display units.
897913 """
898914 self ._offset = xy
899915
@@ -1294,9 +1310,12 @@ def get_zoom(self):
12941310
12951311# def set_offset(self, xy):
12961312# """
1297- # set offset of the container.
1298-
1299- # Accept : tuple of x,y coordinate in display units.
1313+ # Set the offset of the container.
1314+ #
1315+ # Parameters
1316+ # ----------
1317+ # xy : (float, float)
1318+ # The (x,y) coordinates of the offset in display units.
13001319# """
13011320# self._offset = xy
13021321
0 commit comments