cmap2cpt

typhon.plots.cmap2cpt(cmap, filename=None, N=None)[source]

Export colormap to cpt file.

Parameters:
  • cmap (str) – Colormap name.

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

  • N (int) – Number of colors.