class_docstr: Base class for subplots, which are :class:`Axes` instances with
  additional methods to facilitate generating and manipulating a set
  of :class:`Axes` within a figure.
docstr: Only show "outer" labels and tick labels.
  
  x-labels are only kept for subplots on the last row; y-labels only for
  subplots on the first column.
docstr_tok: ["Only","show","``","outer","''","labels","and","tick","labels",".","x-labels","are","only","kept","for","subplots","on","the","last","row",";","y-labels","only","for","subplots","on","the","first","column","."]
code: def label_outer(self):
      """Only show "outer" labels and tick labels.
  
      x-labels are only kept for subplots on the last row; y-labels only for
      subplots on the first column.
      """
      lastrow = self.is_last_row()
      firstcol = self.is_first_col()
      if not lastrow:
          for label in self.get_xticklabels(which="both"):
              label.set_visible(False)
          self.get_xaxis().get_offset_text().set_visible(False)
          self.set_xlabel("")
      if not firstcol:
          for label in self.get_yticklabels(which="both"):
              label.set_visible(False)
          self.get_yaxis().get_offset_text().set_visible(False)
          self.set_ylabel("")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import map
  from matplotlib.gridspec import GridSpec, SubplotSpec
  from matplotlib import docstring
  import matplotlib.artist
  from matplotlib.axes._axes import Axes
  import matplotlib._layoutbox
  import warnings
  from matplotlib.cbook import mplDeprecation
label_desc: Use image node_id 12 for calling the SubplotBase obj's underlying member method code with example usage: obj.label_outer() without return types