Skip to main content

Colormap Complex

CI Status Documentation Status Test coverage percentage

uv Ruff pre-commit

PyPI Version Supported Python versions License


Documentation: https://colormap-complex.readthedocs.io

Source Code: https://github.com/34j/colormap-complex


Complex / 2d colormap

Installation

Install this via pip (or your favourite package manager):

pip install colormap-complex

Usage

from colormap_complex import colormap
import numpy as np

lin = np.linspace(-1, 1, 100)
x, y = np.meshgrid(lin, lin)
z = x + 1j * y
c = colormap(type="oklab")(z.real, z.imag, scale=True)
plt.imshow(c, extent=(-1, 1, -1, 1), origin='lower')

All colormaps

colormaps

Examples

z^(2/3+i) z^(2/3+i) z^(2/3+i)

Description

  • "bremm", "cubediagonal", "schumann", "steiger", "teulingfig2", "ziegler" colormaps are collected from spinthil/pycolormap-2d which is based on:

    M. Steiger, J. Bernard, S. Thum, S. Mittelstädt, M. Hutter, D. A. Keim, and J. Kohlhammer, “Explorative Analysis of 2D Color Maps,” in International Conferences in Central Europe on Computer Graphics, Visualization and Computer Vision, 2015, vol. 23, pp. 151–160.

  • Other colormaps are built on top of colour-science/colour and created by the author.
  • "oklab", "prolab" are perceptually uniform (lightness) colormaps.
  • "oklch", "prolch" are perceptually uniform (chroma) colormaps. X axis corresponds to Hue and Y axis to Lightness.

Alternatives

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Metadata

Release files for colormap-complex 0.2.0

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

Source distribution (sdist)

Source distribution for colormap-complex 0.2.0
File Size Uploaded
colormap_complex-0.2.0.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for colormap-complex 0.2.0
File Interpreter ABI Platform
colormap_complex-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / colormap_complex-0.2.0.tar.gz

Download URL colormap_complex-0.2.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
9c4672b4929fc31b41a60ba7fc0b52fb67da9e895e0e4f32ca9240fad1e7cb3a
BLAKE2b-256 checksum
How to use checksums
8e9617cb4b63e201b3f0256f1a1399cbe5b623e15b7646bdc71b88a0548af89b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.

Transparency log

Release files / colormap_complex-0.2.0-py3-none-any.whl

Download URL colormap_complex-0.2.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0b510f193dfce5608b8aef96ad44f0b324691a9b761a0a91fa73006d9cb1ff8b
BLAKE2b-256 checksum
How to use checksums
6b46c6e35e34fc2f4cb4eb6de33429b2cba39bc629c98f866ec473ed29b482e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.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