code: def set_cmap(cmap):
      '''
      Set the color map of the current 'color' scale.
      '''
      scale = _context['scales']['color']
      for k, v in _process_cmap(cmap).items():
          setattr(scale, k, v)
      return scalf set_cmap(cmap):
      '''
      Set the color map of the current 'color' scale.
      '''
      scale = _context['scales']['color']
      for k, v in _process_cmap(cmap).items():
          setattr(scale, k, v)
      return scale
docs: Set the color map of the current 'color' scale.