cmastro: colormaps for astronomers

This package contains custom colormaps that have been used in various astronomical applications, similar to cmocean for oceanography. The colormaps are available as raw data files through the GitHub source repository, or available to use (through this Python package) as matplotlib colormaps.

Meet the colormaps

(Source code, png, hires.png, pdf)



cmastro is available via pip, which is the recommended installation method. To install the latest stable version using pip, use:

python -m pip install cmastro

To install the latest development version:

python -m pip install git+

Contributing new colormaps

We welcome new contributed colormaps from anyone via pull requests on GitHub. If you don’t feel comfortable modifying or adding functionality, we also welcome feature requests and bug reports as GitHub issues.

The colormaps in detail


(Source code, png, hires.png, pdf)


(Source code, png, hires.png, pdf)