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