Skip to content

2015.09.10: colormaps

Ben Best edited this page Sep 30, 2015 · 1 revision

catch up last time:

Mai showed a A Better Default Colormap for Matplotlib | SciPy 2015 | Nathaniel Smith and Stéfan van der Walt - YouTube.

  • default "jet" does poorly, eg doctors looking at patient data (Borkin et al 2011)

  • Matlab switched default to "parula"

  • 3 receptors so showing spectra, RGB, whitespace normalization

  • CIE Lab (1976):

    Lab = matrix @ ((XYZ / XYZ_w) ** (1/3))
  • CIECAM02, CAMO2-UCS: builds on estimating brightness and color distance

  • color blindness

    pip install viscm
    python -m viscm view jet
  • Demo: circular colormap

    N = 100
  • colorblind and greyscale friendly: dark-blow-to-light-yellow

    pip install colorspacious
    python
  • new "viridis", after a snake

  • Matplotlib 2.0 = 1.0 + better styles

ColorBrewer: Color Advice for Maps

next time