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