class_docstr: Implements the ``tight_layout`` geometry management.  See
  :ref:`tight_layout_guide` for details.
docstr: Set the pads for tight_layout.
  
  Parameters
  ----------
  pad : float
      Padding between the figure edge and the edges of subplots, as a
      fraction of the font size.
  w_pad, h_pad : float
      Padding (width/height) between edges of adjacent subplots.
      Defaults to *pad*.
  rect : tuple (left, bottom, right, top)
      rectangle in normalized figure coordinates that the subplots
      (including labels) will fit into.
docstr_tok: ["Set","the","pads","for","tight_layout",".","Parameters","--","--","--","--","--","pad",":","float","Padding","between","the","figure","edge","and","the","edges","of","subplots",",","as","a","fraction","of","the","font","size",".","w_pad",",","h_pad",":","float","Padding","(","width\/height",")","between","edges","of","adjacent","subplots",".","Defaults","to","*","pad","*",".","rect",":","tuple","(","left",",","bottom",",","right",",","top",")","rectangle","in","normalized","figure","coordinates","that","the","subplots","(","including","labels",")","will","fit","into","."]
code: def set(self, *, pad=None, w_pad=None, h_pad=None, rect=None):
      """
      Set the pads for tight_layout.
  
      Parameters
      ----------
      pad : float
          Padding between the figure edge and the edges of subplots, as a
          fraction of the font size.
      w_pad, h_pad : float
          Padding (width/height) between edges of adjacent subplots.
          Defaults to *pad*.
      rect : tuple (left, bottom, right, top)
          rectangle in normalized figure coordinates that the subplots
          (including labels) will fit into.
      """
      for td in self.set.__kwdefaults__:
          if locals()[td] is not None:
              self._params[td] = locals()[td]
  
imports: from contextlib import nullcontext
  import matplotlib
  from matplotlib._constrained_layout import do_constrained_layout
  from matplotlib._tight_layout import get_subplotspec_list, get_tight_layout_figure
label_desc: Use image node_id 3 for calling the TightLayoutEngine obj's underlying member method code with example usage: obj.set() without return types