cmcrameri 1.9
pip install cmcrameri
Released:
Perceptually uniform colormaps by Fabio Crameri
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License Colormaps in cmcrameri/cm/cmaps: Copyright (c) 2020 Fabio Crameri Python scripts and p...
- Author: Callum Rollo
- Requires: Python >=3.6
Classifiers
Project description
cmcrameri
This is a Python wrapper around Fabio Crameri's perceptually uniform colormaps.
https://www.fabiocrameri.ch/colourmaps/
All credit for creating the colormaps to Fabio. Any errors in the Python implementation of colormaps are my own.
This version is based on Scientific colour maps version 8.0 (2023-06-14).
Install
With pip
:
python -m pip install cmcrameri
With conda
:
conda install -c conda-forge cmcrameri
Usage example
import cmcrameri.cm as cmc
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 1, 100)[np.newaxis, :]
plt.imshow(x, aspect='auto', cmap=cmc.batlow)
plt.axis('off')
plt.show()
Alternatively, the registered name string can be used.
import cmcrameri # required in order to register the colormaps with Matplotlib
...
plt.imshow(x, aspect='auto', cmap='cmc.batlow')
Extra instructions
You can access all the core colormaps from Fabio Crameri's list by cmcrameri.cm.<colormapname>
.
You can use tab autocompletion on cmcrameri.cm
if your editor supports it.
For a reversed colormap, append _r
to the colormap name.
Categorical colormaps have the suffix S
.
For an image of all the available colormaps without leaving the comfort of your Python session:
from cmcrameri import show_cmaps
show_cmaps()
The original colormap text files are shipped as part of the package. Find them on your system with:
from cmcrameri.cm import paths
paths
License
This work is licensed under an MIT license.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License Colormaps in cmcrameri/cm/cmaps: Copyright (c) 2020 Fabio Crameri Python scripts and p...
- Author: Callum Rollo
- Requires: Python >=3.6
Classifiers
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cmcrameri-1.9.tar.gz
.
File metadata
- Download URL: cmcrameri-1.9.tar.gz
- Upload date:
- Size: 260.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56faf9b7f53eb03fed450137bec7dc25c1854929d7b841b9c75616fc2c357640 |
|
MD5 | ac1d000016a4e6e7150c3d35beabb9fa |
|
BLAKE2b-256 | fe1861ac7ea74f7c4d82ce3a1d49e9a26492b0df5a8792025066efcb318a88e2 |
File details
Details for the file cmcrameri-1.9-py3-none-any.whl
.
File metadata
- Download URL: cmcrameri-1.9-py3-none-any.whl
- Upload date:
- Size: 277.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daefca10cc405f437ad292bad52f704c2ba8ae692b3e100da8c25f641997e337 |
|
MD5 | d0235d2646e3869f25db25b991f00b8f |
|
BLAKE2b-256 | f9a24c88f17ee50af5093978c4d989936883f959d7d81e1e2fa093863b080c1c |