@@ -64,6 +64,9 @@ def __init__(self, **kwargs):
6464 self ._params = {}
6565
6666 def set (self , ** kwargs ):
67+ """
68+ Set the parameters for the layout engine.
69+ """
6770 raise NotImplementedError
6871
6972 @property
@@ -121,6 +124,9 @@ def __init__(self, adjust_compatible, colorbar_gridspec, **kwargs):
121124 super ().__init__ (** kwargs )
122125
123126 def execute (self , fig ):
127+ """
128+ Do nothing.
129+ """
124130 return
125131
126132
@@ -139,7 +145,7 @@ def __init__(self, *, pad=1.08, h_pad=None, w_pad=None,
139145
140146 Parameters
141147 ----------
142- pad : float, 1.08
148+ pad : float, default: 1.08
143149 Padding between the figure edge and the edges of subplots, as a
144150 fraction of the font size.
145151 h_pad, w_pad : float
@@ -183,6 +189,21 @@ def execute(self, fig):
183189 fig .subplots_adjust (** kwargs )
184190
185191 def set (self , * , pad = None , w_pad = None , h_pad = None , rect = None ):
192+ """
193+ Set the pads for tight_layout.
194+
195+ Parameters
196+ ----------
197+ pad : float
198+ Padding between the figure edge and the edges of subplots, as a
199+ fraction of the font size.
200+ w_pad, h_pad : float
201+ Padding (width/height) between edges of adjacent subplots.
202+ Defaults to *pad*.
203+ rect : tuple (left, bottom, right, top)
204+ rectangle in normalized figure coordinates that the subplots
205+ (including labels) will fit into.
206+ """
186207 for td in self .set .__kwdefaults__ :
187208 if locals ()[td ] is not None :
188209 self ._params [td ] = locals ()[td ]
0 commit comments