DiscreteColormap.copy(colors=None, name=None, N=None, *, alpha=None)[source]

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

  • name (str) – The name of the new colormap. Default is self.name + '_copy'.

  • colors, N, alpha (optional) – See DiscreteColormap. If not provided, these are copied from the current colormap.