class_docstr: A helper for mapping categorical values to colors on demand.
docstr: Specify either a list of colors or one of the color names. If shuffle
  is True then the colors will be shuffled randomly.
docstr_tok: ["Specify","either","a","list","of","colors","or","one","of","the","color","names",".","If","shuffle","is","True","then","the","colors","will","be","shuffled","randomly","."]
code: def __init__(self, colors="flatui", shuffle=False):
      """
      Specify either a list of colors or one of the color names. If shuffle
      is True then the colors will be shuffled randomly.
      """
      self.mapping = {}
      self.colors = colors
  
      if shuffle:
          random.shuffle(self._colors)
  
file_path: yellowbrick/yellowbrick/style/colors.py
imports: import random
  import warnings
  import numpy
  import matplotlib
  import matplotlib.cm
  from copy import copy
  from yellowbrick.exceptions import YellowbrickValueError
  from distutils.version import LooseVersion
label_desc: Use image node_id 1 to create a new ColorMap object from inherited base classes: object with example: obj = ColorMap(colors, shuffle)