class_docstr: A base class of GridSpec that specifies the geometry of the grid
  that a subplot will be placed.
class_docstr_tok: ["A","base","class","of","GridSpec","that","specifies","the","geometry","of","the","grid","that","a","subplot","will","be","placed","."]
docstr: create and return a SuplotSpec instance.
docstr_tok: ["create","and","return","a","SuplotSpec","instance","."]
code: def new_subplotspec(self, loc, rowspan=1, colspan=1):
      """
      create and return a SuplotSpec instance.
      """
      loc1, loc2 = loc
      subplotspec = self[loc1 : loc1 + rowspan, loc2 : loc2 + colspan]
      return subplotspec
  
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 4 for calling the GridSpecBase obj's underlying member method code with example usage: obj.new_subplotspec(loc, rowspan, colspan) and returns: subplotspec