Skip to main content

Perceptually uniform colourmaps

Project description

Python package


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

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

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

Work in progress Not ready for public use yet! I haven't shipped a package before. The eventual aim is for this repo to serve PyPi and conda


pip install cmcrameri

Basic use 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

Extra instructions

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

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

For a reversed colourmap, append _r to the colourmap name

For a sample of all the available colourmaps without leaving the comfort of your Python session

from import show_cmaps 

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cmcrameri, version 0.12
Filename, size File type Python version Upload date Hashes
Filename, size cmcrameri-0.12.tar.gz (87.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page