ContinuousColormap.copy

ContinuousColormap.copy(name=None, segmentdata=None, N=None, *, alpha=None, gamma=None, cyclic=None)[source]

Return a new colormap with relevant properties copied from this one if they were not provided as keyword arguments.

Parameters
  • name (str) – The new colormap name. Default is '_name_copy'.

  • segmentdata, N, alpha, gamma, cyclic (optional) – See ContinuousColormap. If not provided, these are copied from the current colormap.