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 scale
def set_cmap ( cmap ) : scale = _context [ 'scales' ] [ 'color' ] for k , v in _process_cmap ( cmap ) . items ( ) : setattr ( scale , k , v ) return scale
Set the color map of the current 'color' scale.