LinearSegmentedColormap.shifted(shift=180, name=None, **kwargs)[source]

Return a cyclicaly shifted version of the colormap. If the colormap cyclic property is set to False a warning will be raised.

  • shift (float, optional) – The number of degrees to shift, out of 360 degrees. The default is 180.

  • name (str, optional) – The name of the new colormap. Default is + '_s'.

Other Parameters

**kwargs – Passed to LinearSegmentedColormap.copy or PerceptuallyUniformColormap.copy.