cmap2ggr

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

Export colormap as GIMP gradient.

Parameters:
  • cmap (str) – Colormap name.

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

  • N (int) – Number of colors.