ContinuousColormap.append¶
- ContinuousColormap.append(*args, ratios=None, name=None, N=None, **kwargs)[source]¶
Return the concatenation of this colormap with the input colormaps.
- Parameters
*args – Instances of
ContinuousColormap.ratios (
listoffloat, optional) – Relative extent of each component colormap in the merged colormap. Length must equallen(args) + 1.For example,
cmap1.append(cmap2, ratios=(2, 1))generates a colormap with the left two-thrids containing colors fromcmap1and the right one-third containing colors fromcmap2.name (
str, optional) – The name of the new colormap. Default is'_'.join(cmap.name for cmap in args).N (
int, optional) – The number of points in the colormap lookup table. Default isrc['image.lut']=256timeslen(args).
- Other Parameters
**kwargs – Passed to
ContinuousColormap.copyorPerceptualColormap.copy.- Returns
ContinuousColormap– The colormap.
See also