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
andself.N
. IfNone
, the original colormap is returned.name (str, optional) – The new colormap name. Default is
self.name + '_shifted'
.