PerceptualColormap.copy

PerceptualColormap.copy(name=None, segmentdata=None, N=None, *, alpha=None, gamma=None, cyclic=None, clip=None, gamma1=None, gamma2=None, space=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, clip, cyclic, gamma, gamma1, gamma2, space (optional) – See PerceptualColormap. If not provided, these are copied from the current colormap.