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

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.2.0.tar.gz (1.4 MB 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.2.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for colormap_complex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9c4672b4929fc31b41a60ba7fc0b52fb67da9e895e0e4f32ca9240fad1e7cb3a
MD5 ce68d425e35bda792c16c20647c14fb3
BLAKE2b-256 8e9617cb4b63e201b3f0256f1a1399cbe5b623e15b7646bdc71b88a0548af89b

See more details on using hashes here.

Provenance

The following attestation bundles were made for colormap_complex-0.2.0.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for colormap_complex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b510f193dfce5608b8aef96ad44f0b324691a9b761a0a91fa73006d9cb1ff8b
MD5 ba3e25b232135acd1f33dbd2fab7b07f
BLAKE2b-256 6b46c6e35e34fc2f4cb4eb6de33429b2cba39bc629c98f866ec473ed29b482e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for colormap_complex-0.2.0-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