ListedColormap.shifted¶
- ListedColormap.shifted(shift=1, 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
. The default is1
.name (str, optional) – The name of the new colormap. Default is
self.name + '_s'
.
See also