cmcrameri
This is a basic 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 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
Install
pip install cmcrameri
Basic use example
from cmcrameri import cm
import matplotlib.pyplot as plt
import numpy as np
plt.pcolor(np.random.rand(10,10), 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 cmcrameri.cm import show_cmaps
show_cmaps()
Metadata
Release files for cmcrameri 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmcrameri-0.9.tar.gz | 86.0 kB | Details |
Release files / cmcrameri-0.9.tar.gz
| Download URL | cmcrameri-0.9.tar.gz |
|---|---|
| Size | 86.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c21ab90d47cabd099f31ee261324906fa02334952ed565f1c097054440ee5f9c
|
|
BLAKE2b-256 checksum How to use checksums |
1b990e95c409056b7d4d625ab73b3dcab1216012fa0cf3bdd508f03f4ea67671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|