y-sunflower
pypalettes
Python

A large (+2500) collection of colormaps and palettes for Python 🎨

Last updated Jul 3, 2026
476
Stars
13
Forks
3
Issues
+1
Stars/day
Attention Score
87
Language breakdown
Python 99.6%
Makefile 0.4%
Files click to expand
README

PyPalettes

pypalettes logo

A dependency-free large (+2500) collection of colormaps and palettes for Python.

Coverage badge

This package is based on the R package paletteer, and all associated sub-packages (with original palettes) mentioned in the LICENSE file.



Installation

With pip:

pip install pypalettes

With conda:

conda install conda-forge::pypalettes



Quick start

pypalettes primarly offers 2 functions:

  • loadpalette("palettename"): loads a list of colors (dependency-free)
  • loadcmap("palettename"): loads a colormap object (for matplotlib/seaborn/etc)

Continuous colormap for matplotlib/seaborn

import matplotlib.pyplot as plt
import numpy as np
from pypalettes import load_cmap

cmap = loadcmap("Sunset2", cmaptype="continuous")

data = np.random.randn(20, 20)

plt.imshow(data, cmap=cmap) plt.colorbar()

Categorical palette

import matplotlib.pyplot as plt
import seaborn as sns
from pypalettes import load_palette

palette = load_palette("Fun")

df = sns.load_dataset("penguins")

g = sns.lmplot( data=df, x="billlengthmm", y="billdepthmm", hue="species", palette=palette, )

Your own colormap for matplotlib/seaborn

import matplotlib.pyplot as plt
from pypalettes import create_cmap
import numpy as np

cmap = create_cmap( colors=["#D57A6DFF", "#E8B762FF", "#9CCDDFFF", "#525052FF"], cmap_type="continuous", )

x = np.linspace(0, 20, 1000) y = np.sin(x)

plt.scatter(x, y, c=y, cmap=cmap) plt.colorbar()

Going further



Features

  • Add +2500 native palettes to matplotlib and seaborn
  • Load, customise and combine +2500 palettes
  • Create your own palettes
To find out more about using PyPalettes, use this PyPalettes guide.



Chart made with pypalettes

Click on the image to get the associated code!

choropleth map of europe

stacked area chart of natural disasters


gapminder bubble chart

lollipop chart with colormap and arrow



Acknowledgements

PyPalettes is highly inspired (and relies on for the first one) from

A big thanks to Yan Holtz for creating the Color Palette Finder, a web app for browsing palettes



🔗 More in this category

© 2026 GitRepoTrend · y-sunflower/pypalettes · Updated daily from GitHub