class_docstr: A grid layout to place subplots within a figure.
  
  The location of the grid cells is determined in a similar way to
  `.SubplotParams` using *left*, *right*, *top*, *bottom*, *wspace*
  and *hspace*.
  
  Indexing a GridSpec instance returns a `.SubplotSpec`.
class_docstr_tok: ["A","grid","layout","to","place","subplots","within","a","figure",".","The","location","of","the","grid","cells","is","determined","in","a","similar","way","to","`",".SubplotParams","`","using","*","left","*",",","*","right","*",",","*","top","*",",","*","bottom","*",",","*","wspace","*","and","*","hspace","*",".","Indexing","a","GridSpec","instance","returns","a","`",".SubplotSpec","`","."]
docstr: Update the subplot parameters of the grid.
  
  Parameters that are not explicitly given are not changed. Setting a
  parameter to *None* resets it to :rc:`figure.subplot.*`.
  
  Parameters
  ----------
  left, right, top, bottom : float or None, optional
      Extent of the subplots as a fraction of figure width or height.
  wspace, hspace : float, optional
      Spacing between the subplots as a fraction of the average subplot
      width / height.
code: def update(self, **kwargs):
      """
      Update the subplot parameters of the grid.
  
      Parameters that are not explicitly given are not changed. Setting a
      parameter to *None* resets it to :rc:`figure.subplot.*`.
  
      Parameters
      ----------
      left, right, top, bottom : float or None, optional
          Extent of the subplots as a fraction of figure width or height.
      wspace, hspace : float, optional
          Spacing between the subplots as a fraction of the average subplot
          width / height.
      """
      for k, v in kwargs.items():
          if k in self._AllowedKeys:
              setattr(self, k, v)
          else:
              raise AttributeError(f"{k} is an unknown keyword")
      for figmanager in _pylab_helpers.Gcf.figs.values():
          for ax in figmanager.canvas.figure.axes:
              if ax.get_subplotspec() is not None:
                  ss = ax.get_subplotspec().get_topmost_subplotspec()
                  if ss.get_gridspec() == self:
                      ax._set_position(
                          ax.get_subplotspec().get_position(ax.figure)
                      )
  
imports: import copy
  import logging
  from numbers import Integral
  import numpy
  import matplotlib
  from matplotlib import _api, _pylab_helpers, _tight_layout
  from matplotlib.transforms import Bbox
label_desc: Use image node_id 2 for calling the GridSpec obj's underlying member method code with example usage: obj.update() without return types