class_docstr: Analogous to a gridspec, and contained in another LayoutGrid.
class_docstr_tok: ["Analogous","to","a","gridspec",",","and","contained","in","another","LayoutGrid","."]
docstr: Return the bounding box that includes the
  decorations but, *not* the colorbar...
docstr_tok: ["Return","the","bounding","box","that","includes","the","decorations","but",",","*","not","*","the","colorbar","..."]
code: def get_bbox_for_cb(self, rows=0, cols=0):
      """
      Return the bounding box that includes the
      decorations but, *not* the colorbar...
      """
      rows = np.atleast_1d(rows)
      cols = np.atleast_1d(cols)
  
      bbox = Bbox.from_extents(
          (
              self.lefts[cols[0]].value()
              + self.margins["leftcb"][cols[0]].value()
          ),
          (
              self.bottoms[rows[-1]].value()
              + self.margins["bottomcb"][rows[-1]].value()
          ),
          (
              self.rights[cols[-1]].value()
              - self.margins["rightcb"][cols[-1]].value()
          ),
          (
              self.tops[rows[0]].value()
              - self.margins["topcb"][rows[0]].value()
          ),
      )
      return bbox
  
imports: import itertools
  import kiwisolver
  import logging
  import numpy
  import matplotlib
  import matplotlib.patches
  from matplotlib.transforms import Bbox
label_desc: Use image node_id 17 for calling the LayoutGrid obj's underlying member method code with example usage: obj.get_bbox_for_cb(rows, cols) and returns: bbox