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