ColormapDatabase.__setitem__¶
- ColormapDatabase.__setitem__(key, value)[source]¶
Store the colormap under its lowercase name.
If the object is a
matplotlib.colors.ListedColormap
it is converted toproplot.colors.DiscreteColormap
ifcmap.N
is smaller thanrc['cmap.listedthresh']
=64
andproplot.colors.ContinuousColormap
otherwise.If the object is a
matplotlib.colors.LinearSegmentedColormap
it is converted toproplot.colors.ContinuousColormap
.