@@ -179,9 +179,16 @@ def contains(self, mouseevent):
179
179
180
180
def set_offset (self , xy ):
181
181
"""
182
- Set the offset
182
+ Set the offset.
183
183
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)
185
192
"""
186
193
self ._offset = xy
187
194
self .stale = True
@@ -602,9 +609,12 @@ def set_transform(self, t):
602
609
603
610
def set_offset (self , xy ):
604
611
"""
605
- set offset of the container.
612
+ Set the offset of the container.
606
613
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.
608
618
"""
609
619
self ._offset = xy
610
620
@@ -773,9 +783,12 @@ def set_transform(self, t):
773
783
774
784
def set_offset (self , xy ):
775
785
"""
776
- set offset of the container.
786
+ Set the offset of the container.
777
787
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.
779
792
"""
780
793
self ._offset = xy
781
794
@@ -891,9 +904,12 @@ def set_transform(self, t):
891
904
892
905
def set_offset (self , xy ):
893
906
"""
894
- set offset of the container.
907
+ Set the offset of the container.
895
908
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.
897
913
"""
898
914
self ._offset = xy
899
915
@@ -1294,9 +1310,12 @@ def get_zoom(self):
1294
1310
1295
1311
# def set_offset(self, xy):
1296
1312
# """
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.
1300
1319
# """
1301
1320
# self._offset = xy
1302
1321
0 commit comments