Skip to main content

Perceptually uniform colormaps for scientific visualization

Project description

cmuseo

cmuseo is a Python package that provides perceptually uniform colormaps, ensuring accurate gradients and accessible data interpretation for scientific visualization, with palette names reflecting the key colors of each colormap.

  • vivian transitions smoothly from midnight violet through refreshing teal-green (viridian) to bright pale canary yellow, forming a vibrant palette well-suited for clear, engaging visualizations in data science and research.

  • indira moves from deep indigo through plum purple and brilliant orange into light straw yellow, offering a luminous, warm palette ideal for visualizations requiring energy and contrast.

  • elsa progresses from dark elderberry purple through deep blue and pastel sapphire to frosty mint and pale jade, creating a cool, crystalline palette suited for visualizations with an icy aesthetic and arctic clarity.

cmuseo colormaps preview

Features

  • Unique RGB colormaps designed with perceptual uniformity in mind
  • Easy integration with matplotlib
  • Openly licensed under GNU GPL v3.0

Installation

pip install cmuseo

Usage

Basic usage

import cmuseo

Example: Previewing colormaps

import matplotlib.pyplot as plt
import numpy as np
import cmuseo

colormaps = ['vivian', 'indira', 'elsa']

fig, axs = plt.subplots(len(colormaps), 1, figsize=(8, 0.8*len(colormaps)))

gradient = np.linspace(0, 1, 256).reshape(1, -1)

for ax, cmap_name in zip(axs, colormaps):
    ax.imshow(gradient, aspect='auto', cmap=cmap_name)
    ax.text(-0.02, 0.5, cmap_name, va='center', ha='right', transform=ax.transAxes)
    ax.set_axis_off()

plt.tight_layout()
plt.show()

Project details


Download files

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

Source Distribution

cmuseo-1.0.1.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmuseo-1.0.1-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file cmuseo-1.0.1.tar.gz.

File metadata

  • Download URL: cmuseo-1.0.1.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cmuseo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0eed1bbe216934b0f3c90c6e6aea5d188b19ff8512965fee95b34c94e72ed30e
MD5 79b57e84551ac31141df579e671f3108
BLAKE2b-256 798c0541bb45ba67676998e36b3da734e7f4114f3942a7bfcad2fd0dab711c8b

See more details on using hashes here.

File details

Details for the file cmuseo-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cmuseo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cmuseo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cfbeea2289efc408442fdc449f3a84d7e1bc0da37617f0c0b81c4469f86e0b6
MD5 cad2228c93c53f5bae9d8799d3300b7a
BLAKE2b-256 c17c2d8a888ef52877006d03cc29a6e31336ceaa46b485a59598e2db43ec3ac3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page