smpl.plot.register_cmap¶
- smpl.plot.register_cmap(name=None, cmap=None, *, override_builtin=False)[source]¶
[Deprecated] Add a colormap to the set recognized by
get_cmap().Register a new colormap to be accessed by name
LinearSegmentedColormap('swirly', data, lut) register_cmap(cmap=swirly_cmap)
Parameters¶
- namestr, optional
The name that can be used in
get_cmap()or :rc:`image.cmap`If absent, the name will be the
nameattribute of the cmap.- cmapmatplotlib.colors.Colormap
Despite being the second argument and having a default value, this is a required argument.
override_builtin : bool
Allow built-in colormaps to be overridden by a user-supplied colormap.
Please do not use this unless you are sure you need it.
Notes¶
Deprecated since version 3.6: Use
matplotlib.colormaps.register(name)instead.