Colormap family with full range of lightness
Project description
Roseus colormap family
A perceptually uniform colormaps with full range of lightness.
Preview
Installation
pip install roseus
If installation fails, upgrade pip with python -m pip install --upgrade pip and try again.
Usage
To use with matplotlib, import roseus.mpl
.
import matplotlib.pyplot as plt
import roseus.mpl as rs
plt.imshow(x, cmap=rs.roseus)
# or
plt.imshow(x, cmap='rs.roseus')
To prevent confusion in namespace, prefix rs.
is added. (ex. rs.arcus
, rs.b
, rs.gr
, ...)
Motivation
All colormaps of the Roseus family has (almost) full range of lightness. They have excellent contrast which visualize data more clearly.
Roseus was developed for Audacity spectrogram. More perceptually uniform colormaps are added and aim to be used in a wider range of fields.
Further readings about perceptually uniform colormaps:
https://bids.github.io/colormap/
https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html
Look into the colormaps
To plot measures of a colormap in Roseus family,
from roseus.util import plot_measures
plot_measures('roseus')
Note: viscm used in measurements has been modified to target CAM16-UCS instead of CAM02-UCS.
All colormaps has smooth chroma, hue transition.
Changelog
v1.1
- Added more colormaps (r, b, cyanus, rbg, arcus, gr, rg, lavendula)
- Packed into Python package
v1.0
- The colormap is named 'Roseus'. (inspiration from Viridis)
- It was perceptually smooth, but wasn't perceptually uniform. Now it is.
- Roseus now targets CAM16-UCS color space instead of the obsolute CAM02-UCS.
v0.1
- First release for Audacity spectrogram.
Project details
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 roseus-1.1.0a1.tar.gz
.
File metadata
- Download URL: roseus-1.1.0a1.tar.gz
- Upload date:
- Size: 244.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771c222fcb5193625de521cae0e2c6e06880a6ff81675479b1061eed6f02fe08 |
|
MD5 | ab9e5cc95bf9c921037c95bc10241e0a |
|
BLAKE2b-256 | ac112179052dde38c5f45a0065865198055f6e3878d00f7f281ae3fa346c35a9 |
File details
Details for the file roseus-1.1.0a1-py3-none-any.whl
.
File metadata
- Download URL: roseus-1.1.0a1-py3-none-any.whl
- Upload date:
- Size: 250.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25cd4f91f8e1716b683a82f45f1fed35f576ce4173a6b6b8b62809ee3dc3f1a7 |
|
MD5 | fa02434f4c0a614fb9b05bf0059b3be3 |
|
BLAKE2b-256 | c21b9f1e2fd61c09915d8384057ee08d1f572137a2ede7f67f3e66d1ac570deb |