class_docstr: This class connects a :class:`ColorbarBase` to a
  :class:`~matplotlib.cm.ScalarMappable` such as a
  :class:`~matplotlib.image.AxesImage` generated via
  :meth:`~matplotlib.axes.Axes.imshow`.
  
  It is not intended to be instantiated directly; instead,
  use :meth:`~matplotlib.figure.Figure.colorbar` or
  :func:`~matplotlib.pyplot.colorbar` to make your colorbar.
class_docstr_tok: ["This","class","connects","a",":","class",":","`","ColorbarBase","`","to","a",":","class",":","`","~matplotlib.cm.ScalarMappable","`","such","as","a",":","class",":","`","~matplotlib.image.AxesImage","`","generated","via",":","meth",":","`","~matplotlib.axes.Axes.imshow","`",".","It","is","not","intended","to","be","instantiated","directly",";","instead",",","use",":","meth",":","`","~matplotlib.figure.Figure.colorbar","`","or",":","func",":","`","~matplotlib.pyplot.colorbar","`","to","make","your","colorbar","."]
docstr: Destroy and rebuild the colorbar.  This is
  intended to become obsolete, and will probably be
  deprecated and then removed.  It is not called when
  the pyplot.colorbar function or the Figure.colorbar
  method are used to create the colorbar.
docstr_tok: ["Destroy","and","rebuild","the","colorbar",".","This","is","intended","to","become","obsolete",",","and","will","probably","be","deprecated","and","then","removed",".","It","is","not","called","when","the","pyplot.colorbar","function","or","the","Figure.colorbar","method","are","used","to","create","the","colorbar","."]
code: def update_bruteforce(self, mappable):
      """
      Destroy and rebuild the colorbar.  This is
      intended to become obsolete, and will probably be
      deprecated and then removed.  It is not called when
      the pyplot.colorbar function or the Figure.colorbar
      method are used to create the colorbar.
  
      """
      # We are using an ugly brute-force method: clearing and
      # redrawing the whole thing.  The problem is that if any
      # properties have been changed by methods other than the
      # colorbar methods, those changes will be lost.
      self.ax.cla()
      # clearing the axes will delete outline, patch, solids, and lines:
      self.outline = None
      self.patch = None
      self.solids = None
      self.lines = list()
      self.dividers = None
      self.set_alpha(mappable.get_alpha())
      self.cmap = mappable.cmap
      self.norm = mappable.norm
      self.config_axis()
      self.draw_all()
      if isinstance(self.mappable, contour.ContourSet):
          CS = self.mappable
          if not CS.filled:
              self.add_lines(CS)
  
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 5 for calling the Colorbar obj's underlying member method code with example usage: obj.update_bruteforce(mappable) without return types