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", scale=True)(z.real, z.imag)
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.3.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.1.3-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colormap_complex-0.1.3.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.1.3.tar.gz
Algorithm Hash digest
SHA256 7d44d498886c5c7c98501d993f38c25d7e6113d76e33a7458be43b6cca76fab6
MD5 2d63d92c81ce9d072e34429a505c90ec
BLAKE2b-256 477f77f54af64158da05d040b705bde9ccb040c5abffbefebbe2d847087db7a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for colormap_complex-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9d337db165cc0050fcb93977c2bf3f05a4c9f3f5b089ed142f6ba880501946
MD5 a43d9f5d835df2ee4c02152fca391e7d
BLAKE2b-256 bd00fa2c8868696397f4a98e540709a2b0076c9efd6e554d03d3350e6871acdc

See more details on using hashes here.

Provenance

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