class_docstr: Implements the ``tight_layout`` geometry management.  See
  :ref:`tight_layout_guide` for details.
docstr: Initialize tight_layout engine.
  
  Parameters
  ----------
  pad : float, default: 1.08
      Padding between the figure edge and the edges of subplots, as a
      fraction of the font size.
  h_pad, w_pad : float
      Padding (height/width) between edges of adjacent subplots.
      Defaults to *pad*.
  rect : tuple (left, bottom, right, top), default: (0, 0, 1, 1).
      rectangle in normalized figure coordinates that the subplots
      (including labels) will fit into.
docstr_tok: ["Initialize","tight_layout","engine",".","Parameters","--","--","--","--","--","pad",":","float",",","default",":","1.08","Padding","between","the","figure","edge","and","the","edges","of","subplots",",","as","a","fraction","of","the","font","size",".","h_pad",",","w_pad",":","float","Padding","(","height\/width",")","between","edges","of","adjacent","subplots",".","Defaults","to","*","pad","*",".","rect",":","tuple","(","left",",","bottom",",","right",",","top",")",",","default",":","(","0",",","0",",","1",",","1",")",".","rectangle","in","normalized","figure","coordinates","that","the","subplots","(","including","labels",")","will","fit","into","."]
code: def __init__(
      self,
      *,
      pad=1.08,
      h_pad=None,
      w_pad=None,
      rect=(0, 0, 1, 1),
      **kwargs,
  ):
      """
      Initialize tight_layout engine.
  
      Parameters
      ----------
      pad : float, default: 1.08
          Padding between the figure edge and the edges of subplots, as a
          fraction of the font size.
      h_pad, w_pad : float
          Padding (height/width) between edges of adjacent subplots.
          Defaults to *pad*.
      rect : tuple (left, bottom, right, top), default: (0, 0, 1, 1).
          rectangle in normalized figure coordinates that the subplots
          (including labels) will fit into.
      """
      super().__init__(**kwargs)
      for td in ["pad", "h_pad", "w_pad", "rect"]:
          # initialize these in case None is passed in above:
          self._params[td] = None
      self.set(pad=pad, h_pad=h_pad, w_pad=w_pad, rect=rect)
  
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 1 to create a new TightLayoutEngine object from inherited base classes: LayoutEngine with example: obj = TightLayoutEngine()