DiscreteColormap.shifted

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

Return a cyclically shifted version of the colormap.

Parameters
  • shift (float, default: 1) – The number of list indices to shift.

  • name (str, eefault: '_name_s') – The new colormap name.