Skip to main content

Complex / 2d colormap

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-3 Bessel Erf

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

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.0.tar.gz (11.2 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.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colormap_complex-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 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.0.tar.gz
Algorithm Hash digest
SHA256 b1d8e686cec4208d0219849787eaa9303dc30d9f77d6f73bc9ad747086a1d484
MD5 0b6c60dbfc0fe0c4f641c7f10ab53cf6
BLAKE2b-256 0229c212b1f0a3366f5df5feb770de4a1e3f9b4f669559e656c00733956b81ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for colormap_complex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6206b59ae0ac258030f7054026f9f4d5e2d221e2429aa82893a9274e6cfca263
MD5 86de2fcdfc5d83d973d5fb2aed41d163
BLAKE2b-256 3de9e78070eed83ab4af8fcf1a568ccd5e2809f43f386758fd81ede77431cfae

See more details on using hashes here.

Provenance

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