Skip to main content

The Chromophile color maps are designed for the accurate display of quantitative data. This package contains the Chromophile color maps in both Matplotlib and Bokeh formats.

Installation

The Chromophile color maps are distributed as a Python package. To install it, open a terminal and execute:

pip install chromophile

Or, in IPython or Jupyter, use the %pip magic command:

%pip install chromophile

The chromophile package has no required dependencies. To use the Chromophile color maps with Matplotlib, the matplotlib package must be available at the time chromophile is imported.

The tools used to develop the Chromophile color maps, and the source for the online documentation, are in a separate package called chromophile-dev. Most users will not need this package.

Usage

To use the color maps, import the Chromophile package:

>>> import chromophile as cp

The Chromophile color maps are stored in two formats:

  • Matplotlib Colormap objects are stored in cmap. If Matplotlib is not available, cmap will equal None. The color maps are also added to Matplotlib’s color map registry.

  • Bokeh palettes are stored in palette.

Individual color maps can be accessed either as dictionary items or as attributes of these objects. For example:

>>> cp.cmap.cp_dawn
<matplotlib.colors.ListedColormap object at ...>
>>> cp.palette['cp_peacock']
('#06003c', '#06013d', '#06023e', '#07043e', ...)

The same color map is returned regardless of how it is accessed:

>>> cp.cmap.cp_lemon_lime is cp.cmap['cp_lemon_lime']
True
>>> cp.palette.cp_blue is cp.palette['cp_blue']
True

Most IDEs should support tab completion for cmap and palette.

The available color maps can be listed using the .keys() method of cmap or palette or by calling dir() on either of these objects. They are also displayed in the online documentation.

Release files for chromophile 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chromophile 1.0.7
File Size Uploaded
chromophile-1.0.7.tar.gz 54.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chromophile 1.0.7
File Interpreter ABI Platform
chromophile-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 104.2 kB

Release files / chromophile-1.0.7.tar.gz

Download URL chromophile-1.0.7.tar.gz
Size 54.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fd15b2def9b45a341071fc7f18a8fcfbfb777934a2787642a14e50ec6065cfea
BLAKE2b-256 checksum
How to use checksums
f005d84f8524fbf673ef86f1830a5e0abee094022ae11a0ae86b5caf32cafed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / chromophile-1.0.7-py3-none-any.whl

Download URL chromophile-1.0.7-py3-none-any.whl
Size 50.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9ca51a012543e344955ecad03fc18b5f644099263ede2360980d02cbb483f69
BLAKE2b-256 checksum
How to use checksums
c07e13c3e10630e599e4aea1c0b69b8e01fa684c479d866531c986b8a34da0b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page