class_docstr: Specifies the location of the subplot in the given `GridSpec`.
      
class_docstr_tok: ["Specifies","the","location","of","the","subplot","in","the","given","`","GridSpec","`","."]
docstr: The subplot will occupy the num1-th cell of the given
  gridspec.  If num2 is provided, the subplot will span between
  num1-th cell and num2-th cell.
  
  The index starts from 0.
docstr_tok: ["The","subplot","will","occupy","the","num1-th","cell","of","the","given","gridspec",".","If","num2","is","provided",",","the","subplot","will","span","between","num1-th","cell","and","num2-th","cell",".","The","index","starts","from","0","."]
code: def __init__(self, gridspec, num1, num2=None):
      """
      The subplot will occupy the num1-th cell of the given
      gridspec.  If num2 is provided, the subplot will span between
      num1-th cell and num2-th cell.
  
      The index starts from 0.
      """
      self._gridspec = gridspec
      self.num1 = num1
      self.num2 = num2
      if gridspec._layoutbox is not None:
          glb = gridspec._layoutbox
          # So note that here we don't assign any layout yet,
          # just make the layoutbox that will conatin all items
          # associated w/ this axis.  This can include other axes like
          # a colorbar or a legend.
          self._layoutbox = layoutbox.LayoutBox(
              parent=glb,
              name=glb.name + ".ss" + layoutbox.seq_id(),
              artist=self,
          )
      else:
          self._layoutbox = None
  
imports: from __future__ import absolute_import, division, print_function
  import six
  import copy
  import logging
  import warnings
  import numpy
  import matplotlib
  from matplotlib import _pylab_helpers, tight_layout, rcParams
  from matplotlib.transforms import Bbox
  import matplotlib._layoutbox
  from matplotlib.cbook import mplDeprecation
label_desc: Use image node_id 1 to create a new SubplotSpec object from inherited base classes: object with example: obj = SubplotSpec(gridspec, num1, num2)