colors¶
-
vcs.colors.
matplotlib2vcs
(cmap, vcs_name=None)[source]¶ Convert a matplotlib colormap to a vcs colormap Input can be either the actual matplotlib colormap or its name Optional second argument: vcs_name, name of the resulting vcs colormap
- Parameters
cmap (
str
, matplotlib.cm) – A matplotlib colormap or string name of a matplotlib colormapvcs_name (
str
) – String to set the name of the generated VCS colormap
- Returns
A VCS colormap object
- Return type