CMasher

cmasher.readthedocs.io ↗

Choose scientific colour maps and inspect or adapt them in Python.

SI Score
80/100
Pricing
Open Source AI reading, not confirmed
Free plan
Yes AI reading, not confirmed
Sign-up required
Not confirmed

Ask SI about CMasher

Answers use saved listing facts and recorded sources.
Homepage screenshot
Screenshot of the CMasher homepage

What it does

CMasher provides scientific colour maps with tools for comparing, combining and sampling them under the free BSD 3-Clause licence. Python users can build plot-ready maps, and other applications can read the supplied RGB or HEX text tables.

Choose a map family from its overview, then preview the colour and grayscale versions. To avoid very dark or very light ends, select a sub-range; to colour separate lines, request a fixed number of evenly spaced colours and choose HEX output.

Sub-map extraction does not interpolate new colours. The guide recommends retaining at least 128 colours for a smooth continuous result, so a very narrow crop can produce visible steps. Separate maps can also be combined at specified positions rather than always splitting the range equally.

CMasher is free under the BSD 3-Clause licence. Standalone modules can carry a registered CMasher map into another Python project, while normalized RGB, 8-bit RGB and HEX tables support manual import into other software.

Strengths

  • Grayscale previews expose changes in lightness.
  • Sub-ranges and fixed-count samples serve different plotting needs.
  • Text tables provide a route outside Python.

Watch out for

  • Narrow sub-ranges can contain too few colours for a smooth result.

Best for

  • Adapting scientific colour maps to a figure’s range

Sources