colorcet

Collection of perceptually uniform colormaps

28 个版本 Python >=3.10
安装
pip install colorcet
poetry add colorcet
pipenv install colorcet
conda install colorcet
描述



Colorcet: Collection of perceptually uniform colormaps

Latest release Github release PyPI version colorcet version conda-forge version defaults version
Python Python support
Build Status Linux/MacOS Build Status
Coverage codecov
Latest dev release Github tag dev-site
Documentation site

What is it?

Colorcet is a collection of perceptually uniform colormaps for use with Python plotting programs like bokeh, matplotlib, holoviews, and datashader based on the set of perceptually uniform colormaps created by Peter Kovesi at the Center for Exploration Targeting.

Installation

Colorcet supports Python 3.10 and greater on Linux, Windows, and Mac and can be installed with conda:

conda install colorcet

or with pip:

python -m pip install colorcet

If you want to try out the latest features between releases, you can get the latest dev release by installing:

conda install -c pyviz/label/dev colorcet

For more information take a look at Getting Started.

Learning more

You can see all the details about the methods used to create these colormaps in Peter Kovesi's 2015 arXiv paper. Other useful background is available in a 1996 paper from IBM.

The Matplotlib project also has a number of relevant resources, including an excellent 2015 SciPy talk, the viscm tool for creating maps like the four in mpl, the cmocean site collecting a set of maps created by viscm, and the discussion of how the mpl maps were created.

Samples

Some of the Colorcet colormaps that have short, memorable names (which are probably the most useful ones) are visible here:


But the complete set of 100+ is shown in the User Guide.

版本列表
3.2.1 2026-04-28
3.2.0 2026-04-28
3.2.1rc0 2026-04-28
3.2.0rc0 2026-04-28
3.1.0 2024-02-29
3.1.1a1 2025-03-14
3.1.0rc1 2024-02-29
3.0.1 2022-10-03
3.0.0 2021-11-27
3.0.1a0 2022-10-03
3.0.0a8 2022-09-30
3.0.0a7 2021-11-27
3.0.0a6 2021-11-23
3.0.0a5 2021-11-23
3.0.0a4 2021-11-23
3.0.0a3 2021-11-23
3.0.0a2 2021-11-23
3.0.0a1 2021-11-23
3.0.0a0 2021-11-16
2.0.6 2021-01-19
2.0.5 2021-01-19
2.0.2 2019-08-28
2.0.1 2019-04-03
2.0.0 2019-04-03
2.0.7a2 2021-11-10
1.0.1 2019-02-14
0.9.1 2016-12-14
0.9.0 2016-11-10