Skip to main content

Python package

Python 3.6 Python 3.7 Python 3.8 Python 3.9

Downloads (PyPI)

Conda Downloads (conda-forge)

cmcrameri

This is a Python wrapper around Fabio Crameri's perceptually uniform colour maps

http://www.fabiocrameri.ch/colourmaps.php

All credit for creating the colourmaps to Fabio. Any errors in the Python implementation of colourmaps are my own.

This version is based on Scientific Colourmaps Version 6.0.4 (06.01.2020)

Install

With pip:

pip install cmcrameri

With conda:

conda config --add channels conda-forge
conda install cmcrameri

Usage example

from cmcrameri import cm
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 100, 100)[None, :]  
plt.imshow(x, aspect='auto', cmap=cm.batlow) # or any of the other colourmaps made by Fabio Crameri
plt.axis('off')
plt.show()

Extra instructions

You can access all the core colourmaps from Fabio Crameri's list by cm.<colormapname>

You can use tab autocompletion on cm if your editor supports it

For a reversed colourmap, append _r to the colourmap name

Categorical colormaps have the suffix S

For an image of all the available colourmaps without leaving the comfort of your Python session

from cmcrameri.cm import show_cmaps 
show_cmaps()

License

This work is licensed under an MIT license.

Release files for cmcrameri 1.1

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

Source distribution (sdist)

Source distribution for cmcrameri 1.1
File Size Uploaded
cmcrameri-1.1.tar.gz 94.0 kB Details

Release files / cmcrameri-1.1.tar.gz

Download URL cmcrameri-1.1.tar.gz
Size 94.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2f24516dc3933df9154916812abd250d9327ca4e5b7c4af141f872dcd0a5850d
BLAKE2b-256 checksum
How to use checksums
9e224ea1b240f137f4c64dda813a2c42c585842060fe80bbfc14f7d1471fd06a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release history Release notifications | RSS feed

1.10

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

1 release file

1.4

2 release files

1.3

1 release file

1.2

2 release files

This release

1.1 This release

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.3

1 release file

0.2

1 release file

0.1

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