ColormapDatabase.__setitem__

ColormapDatabase.__setitem__(key, value)[source]

Store the colormap under its lowercase name. If the object is a matplotlib.colors.ListedColormap and cmap.N is smaller than rc['cmap.listedthresh'] = 64, it is converted to a proplot.colors.DiscreteColormap. Otherwise, it is converted to a proplot.colors.ContinuousColormap.