Skip to main content

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:

  • load_palette("palette_name"): loads a list of colors (dependency-free)
  • load_cmap("palette_name"): 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 = load_cmap("Sunset2", cmap_type="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="bill_length_mm",
    y="bill_depth_mm",
    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



Metadata

Release files for pypalettes 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypalettes 0.2.2
File Size Uploaded
pypalettes-0.2.2.tar.gz 14.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypalettes 0.2.2
File Interpreter ABI Platform
pypalettes-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 MB

Release files / pypalettes-0.2.2.tar.gz

Download URL pypalettes-0.2.2.tar.gz
Size 14.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ecb1870b10e94aec8d723ec1e6667e1415b276a4b52976cf74edc1d746859c1f
BLAKE2b-256 checksum
How to use checksums
59205f6fcf285e81cd48f35446aad479ae914090a7e2a2caba58ad64b53c9df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / pypalettes-0.2.2-py3-none-any.whl

Download URL pypalettes-0.2.2-py3-none-any.whl
Size 367.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb5c6bab1169be409ba14f5f777cd5a3ac6519be09de6536c03a4afaa24a2c00
BLAKE2b-256 checksum
How to use checksums
11c4b6ede942c8fdcd25152a93075d572c98e880aa3b815c9459bc47bd0b227f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page