Export colormap to txt file.
cmap (str) – Colormap name.
filename (str) – Optional filename. Default: cmap + ‘.txt’
N (int) – Number of colors.
comments (str) – Character to start comments with.