LinearSegmentedColormap.shifted¶
- LinearSegmentedColormap.shifted(shift=180, name=None, **kwargs)[source]¶
Return a cyclicaly shifted version of the colormap. If the colormap cyclic property is set to
Falsea warning will be raised.- Parameters
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
self.name + '_s'.
- Other Parameters
**kwargs – Passed to
LinearSegmentedColormap.copyorPerceptuallyUniformColormap.copy.
See also