Skip to main content

Complex / 2d colormap / Domain coloring for matplotlib etc.

Project description

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(z.real, z.imag, type="oklab", 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.

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

colormap_complex-0.1.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

colormap_complex-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file colormap_complex-0.1.1.tar.gz.

File metadata

  • Download URL: colormap_complex-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for colormap_complex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8776d3c89b2973cf97f6762394b9652f5ce5273c66a2d032f63aa15b531cf94
MD5 6904b70a46c562a2981a59abd2a4f466
BLAKE2b-256 33a2fd5fc17aa1cc12b090805f29b2f20381a1e20be4fc64a734cb8582763c30

See more details on using hashes here.

Provenance

The following attestation bundles were made for colormap_complex-0.1.1.tar.gz:

Publisher: ci.yml on 34j/colormap-complex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file colormap_complex-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for colormap_complex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b4136615caa24714cf8be33386ba38000da63d133cd21e3d6214d65cda4f5b1
MD5 33bc7f321085a6701719e602228d9706
BLAKE2b-256 13ef9da09f88e5c223a3f47a6b1c7df6fb809e73f3de6263e61250d106ed828e

See more details on using hashes here.

Provenance

The following attestation bundles were made for colormap_complex-0.1.1-py3-none-any.whl:

Publisher: ci.yml on 34j/colormap-complex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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