cmap2c3g

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

Export colormap ass CSS3 gradient.

Parameters:
  • cmap (str) – Colormap name.

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

  • N (int) – Number of colors.