less than 1 minute read

This article, about how to find better colour schemes in Python, led me to pypalettes - an easy way to get beautiful colour palettes into Matplotlib. Their colour palette finder lets you see a variety of graph styles and what each would look like to someone colour blind.

For an example, I really like the Bay colourmap, it reminds me of the gruvbox theme.

But what if I want a continuous colourmap? We can just add type=continuous!

from pypalettes import load_cmap

load_cmap("Bay", cmap_type="continuous")

pypalettes allows you to easily define your own colour palettes and registers them with Matplotlib, fixing a problem that has always annoyed me!