Complex / 2d colormap / Domain coloring for matplotlib etc.
Project description
Colormap Complex
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
Examples
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c4672b4929fc31b41a60ba7fc0b52fb67da9e895e0e4f32ca9240fad1e7cb3a
|
|
| MD5 |
ce68d425e35bda792c16c20647c14fb3
|
|
| BLAKE2b-256 |
8e9617cb4b63e201b3f0256f1a1399cbe5b623e15b7646bdc71b88a0548af89b
|
Provenance
The following attestation bundles were made for colormap_complex-0.2.0.tar.gz:
Publisher:
ci.yml on 34j/colormap-complex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colormap_complex-0.2.0.tar.gz -
Subject digest:
9c4672b4929fc31b41a60ba7fc0b52fb67da9e895e0e4f32ca9240fad1e7cb3a - Sigstore transparency entry: 201832650
- Sigstore integration time:
-
Permalink:
34j/colormap-complex@e92c36cc7a6388b47116beb3736e8933b636cfbe -
Branch / Tag:
refs/heads/main - Owner: https://github.com/34j
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@e92c36cc7a6388b47116beb3736e8933b636cfbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file colormap_complex-0.2.0-py3-none-any.whl.
File metadata
- Download URL: colormap_complex-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b510f193dfce5608b8aef96ad44f0b324691a9b761a0a91fa73006d9cb1ff8b
|
|
| MD5 |
ba3e25b232135acd1f33dbd2fab7b07f
|
|
| BLAKE2b-256 |
6b46c6e35e34fc2f4cb4eb6de33429b2cba39bc629c98f866ec473ed29b482e1
|
Provenance
The following attestation bundles were made for colormap_complex-0.2.0-py3-none-any.whl:
Publisher:
ci.yml on 34j/colormap-complex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colormap_complex-0.2.0-py3-none-any.whl -
Subject digest:
0b510f193dfce5608b8aef96ad44f0b324691a9b761a0a91fa73006d9cb1ff8b - Sigstore transparency entry: 201832654
- Sigstore integration time:
-
Permalink:
34j/colormap-complex@e92c36cc7a6388b47116beb3736e8933b636cfbe -
Branch / Tag:
refs/heads/main - Owner: https://github.com/34j
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@e92c36cc7a6388b47116beb3736e8933b636cfbe -
Trigger Event:
push
-
Statement type: