class_docstr: Implements the ``constrained_layout`` geometry management.  See
  :ref:`constrainedlayout_guide` for details.
class_docstr_tok: ["Implements","the","``","constrained_layout","``","geometry","management",".","See",":","ref",":","`","constrainedlayout_guide","`","for","details","."]
docstr: Set the pads for constrained_layout.
  
  Parameters
  ----------
  h_pad, w_pad : float
      Padding around the Axes elements in inches.
      Default to :rc:`figure.constrained_layout.h_pad` and
      :rc:`figure.constrained_layout.w_pad`.
  hspace, wspace : float
      Fraction of the figure to dedicate to space between the
      axes.  These are evenly spread between the gaps between the Axes.
      A value of 0.2 for a three-column layout would have a space
      of 0.1 of the figure width between each column.
      If h/wspace < h/w_pad, then the pads are used instead.
      Default to :rc:`figure.constrained_layout.hspace` and
      :rc:`figure.constrained_layout.wspace`.
  rect : tuple of 4 floats
      Rectangle in figure coordinates to perform constrained layout in
      (left, bottom, width, height), each from 0-1.
docstr_tok: ["Set","the","pads","for","constrained_layout",".","Parameters","--","--","--","--","--","h_pad",",","w_pad",":","float","Padding","around","the","Axes","elements","in","inches",".","Default","to",":","rc",":","`","figure.constrained_layout.h_pad","`","and",":","rc",":","`","figure.constrained_layout.w_pad","`",".","hspace",",","wspace",":","float","Fraction","of","the","figure","to","dedicate","to","space","between","the","axes",".","These","are","evenly","spread","between","the","gaps","between","the","Axes",".","A","value","of","0.2","for","a","three-column","layout","would","have","a","space","of","0.1","of","the","figure","width","between","each","column",".","If","h\/wspace","<","h\/w_pad",",","then","the","pads","are","used","instead",".","Default","to",":","rc",":","`","figure.constrained_layout.hspace","`","and",":","rc",":","`","figure.constrained_layout.wspace","`",".","rect",":","tuple","of","4","floats","Rectangle","in","figure","coordinates","to","perform","constrained","layout","in","(","left",",","bottom",",","width",",","height",")",",","each","from","0-1","."]
code: def set(
      self,
      *,
      h_pad=None,
      w_pad=None,
      hspace=None,
      wspace=None,
      rect=None,
  ):
      """
      Set the pads for constrained_layout.
  
      Parameters
      ----------
      h_pad, w_pad : float
          Padding around the Axes elements in inches.
          Default to :rc:`figure.constrained_layout.h_pad` and
          :rc:`figure.constrained_layout.w_pad`.
      hspace, wspace : float
          Fraction of the figure to dedicate to space between the
          axes.  These are evenly spread between the gaps between the Axes.
          A value of 0.2 for a three-column layout would have a space
          of 0.1 of the figure width between each column.
          If h/wspace < h/w_pad, then the pads are used instead.
          Default to :rc:`figure.constrained_layout.hspace` and
          :rc:`figure.constrained_layout.wspace`.
      rect : tuple of 4 floats
          Rectangle in figure coordinates to perform constrained layout in
          (left, bottom, width, height), each from 0-1.
      """
      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 ConstrainedLayoutEngine obj's underlying member method code with example usage: obj.set() without return types