class_docstr: Draw a colorbar in an existing axes.
  
  This is a base class for the :class:`Colorbar` class, which is the
  basis for the :func:`~matplotlib.pyplot.colorbar` function and the
  :meth:`~matplotlib.figure.Figure.colorbar` method, which are the
  usual ways of creating a colorbar.
  
  It is also useful by itself for showing a colormap.  If the *cmap*
  kwarg is given but *boundaries* and *values* are left as None,
  then the colormap will be displayed on a 0-1 scale. To show the
  under- and over-value colors, specify the *norm* as::
  
      colors.Normalize(clip=False)
  
  To show the colors versus index instead of on the 0-1 scale,
  use::
  
      norm=colors.NoNorm.
  
  Useful public methods are :meth:`set_label` and :meth:`add_lines`.
  
  Attributes
  ----------
  ax : Axes
      The `Axes` instance in which the colorbar is drawn.
  
  lines : list
      A list of `LineCollection` if lines were drawn, otherwise
      an empty list.
  
  dividers : LineCollection
      A LineCollection if *drawedges* is ``True``, otherwise ``None``.
class_docstr_tok: ["Draw","a","colorbar","in","an","existing","axes",".","This","is","a","base","class","for","the",":","class",":","`","Colorbar","`","class",",","which","is","the","basis","for","the",":","func",":","`","~matplotlib.pyplot.colorbar","`","function","and","the",":","meth",":","`","~matplotlib.figure.Figure.colorbar","`","method",",","which","are","the","usual","ways","of","creating","a","colorbar",".","It","is","also","useful","by","itself","for","showing","a","colormap",".","If","the","*","cmap","*","kwarg","is","given","but","*","boundaries","*","and","*","values","*","are","left","as","None",",","then","the","colormap","will","be","displayed","on","a","0-1","scale",".","To","show","the","under-","and","over-value","colors",",","specify","the","*","norm","*","as",":",":","colors.Normalize","(","clip=False",")","To","show","the","colors","versus","index","instead","of","on","the","0-1","scale",",","use",":",":","norm=colors.NoNorm",".","Useful","public","methods","are",":","meth",":","`","set_label","`","and",":","meth",":","`","add_lines","`",".","Attributes","--","--","--","--","--","ax",":","Axes","The","`","Axes","`","instance","in","which","the","colorbar","is","drawn",".","lines",":","list","A","list","of","`","LineCollection","`","if","lines","were","drawn",",","otherwise","an","empty","list",".","dividers",":","LineCollection","A","LineCollection","if","*","drawedges","*","is","``","True","``",",","otherwise","``","None","``","."]
docstr: Returns whether the uper limit is open ended.
docstr_tok: ["Returns","whether","the","uper","limit","is","open","ended","."]
code: def _extend_upper(self):
      """Returns whether the uper limit is open ended."""
      return self.extend in ("both", "max")
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import xrange, zip
  import warnings
  import numpy
  import matplotlib
  import matplotlib.artist
  import matplotlib.cbook
  import matplotlib.collections
  import matplotlib.colors
  import matplotlib.contour
  import matplotlib.cm
  import matplotlib.gridspec
  import matplotlib.patches
  import matplotlib.path
  import matplotlib.ticker
  import matplotlib.transforms
  import matplotlib._layoutbox
  import matplotlib._constrained_layout
  from matplotlib import docstring
label_desc: Use image node_id 3 for calling the ColorbarBase obj's underlying member method code with example usage: obj._extend_upper() and returns: unknown