colors

vcs.colors.loadmatplotlibcolormaps()[source]

Convert all matplotlib colormaps to vcs colormaps

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 colormap

  • vcs_name (str) – String to set the name of the generated VCS colormap

Returns

A VCS colormap object

Return type

vcs.colormap.Cp