DiscreteColormap.shifted

DiscreteColormap.shifted(shift=1, name=None)[source]

Return a cyclically shifted version of the colormap.

Parameters
  • shift (float, optional) – The number of places to shift, between -len(cmap.colors) and len(cmap.colors). Default is 1.

  • name (str, optional) – The new colormap name. Default is '_name_s'.