cmap2txt

typhon.plots.cmap2txt(cmap, filename=None, N=None, comments='%')[source]

Export colormap to txt file.

Parameters
  • cmap (str) – Colormap name.

  • filename (str) – Optional filename. Default: cmap + ‘.txt’

  • N (int) – Number of colors.

  • comments (str) – Character to start comments with.