@@ -709,10 +709,13 @@ def get_path(self):
709709 return Path .unit_rectangle ()
710710
711711 def _update_patch_transform (self ):
712- """NOTE: This cannot be called until after this has been added
713- to an Axes, otherwise unit conversion will fail. This
714- makes it very important to call the accessor method and
715- not directly access the transformation member variable.
712+ """
713+ Notes
714+ -----
715+ This cannot be called until after this has been added to an Axes,
716+ otherwise unit conversion will fail. This makes it very important to
717+ call the accessor method and not directly access the transformation
718+ member variable.
716719 """
717720 x0 , y0 , x1 , y1 = self ._convert_units ()
718721 bbox = transforms .Bbox .from_extents (x0 , y0 , x1 , y1 )
@@ -1364,10 +1367,13 @@ def __init__(self, xy, width, height, angle=0, **kwargs):
13641367 self ._patch_transform = transforms .IdentityTransform ()
13651368
13661369 def _recompute_transform (self ):
1367- """NOTE: This cannot be called until after this has been added
1368- to an Axes, otherwise unit conversion will fail. This
1369- makes it very important to call the accessor method and
1370- not directly access the transformation member variable.
1370+ """
1371+ Notes
1372+ -----
1373+ This cannot be called until after this has been added to an Axes,
1374+ otherwise unit conversion will fail. This makes it very important to
1375+ call the accessor method and not directly access the transformation
1376+ member variable.
13711377 """
13721378 center = (self .convert_xunits (self ._center [0 ]),
13731379 self .convert_yunits (self ._center [1 ]))
@@ -1941,10 +1947,10 @@ class Square(_Base):
19411947
19421948 def __init__ (self , pad = 0.3 ):
19431949 """
1944- *pad*
1945- amount of padding
1950+ Parameters
1951+ ----------
1952+ pad : float
19461953 """
1947-
19481954 self .pad = pad
19491955 super ().__init__ ()
19501956
0 commit comments