LinearSegmentedColormap.shifted¶
-
LinearSegmentedColormap.
shifted
(shift=None, 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.- Parameters
shift (float, optional) – The number of degrees to shift, out of 360 degrees. If
None
, the original colormap is returned.name (str, optional) – The name of the new colormap. Default is
self.name + '_shifted'
.**kwargs – Passed to
LinearSegmentedColormap.updated
orPerceptuallyUniformColormap.updated
.