ListedColormap.shifted

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

Return a cyclically shifted version of the colormap.

Parameters
  • shift (float, optional) – The number of places to shift, between -self.N and self.N. If None, the original colormap is returned.

  • name (str, optional) – The new colormap name. Default is self.name + '_shifted'.