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: get the topmost SubplotSpec instance associated with the subplot
docstr_tok: ["get","the","topmost","SubplotSpec","instance","associated","with","the","subplot"]
code: def get_topmost_subplotspec(self):
      "get the topmost SubplotSpec instance associated with the subplot"
      gridspec = self.get_gridspec()
      if hasattr(gridspec, "get_topmost_subplotspec"):
          return gridspec.get_topmost_subplotspec()
      else:
          return self
  
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 8 for calling the SubplotSpec obj's underlying member method code with example usage: obj.get_topmost_subplotspec() and returns: gridspec, self