ColormapDatabase.__setitem__¶
- ColormapDatabase.__setitem__(key, value)[source]¶
Store the colormap under its lowercase name.
If the object is a
matplotlib.colors.ListedColormapit is converted toproplot.colors.DiscreteColormapifcmap.Nis smaller thanrc['cmap.listedthresh']=64andproplot.colors.ContinuousColormapotherwise.If the object is a
matplotlib.colors.LinearSegmentedColormapit is converted toproplot.colors.ContinuousColormap.