Skip to content

Complex / 2d multivariate bivariate colormap / Domain coloring for Matplotlib, Plotly etc. (pure-numpy)

License

Notifications You must be signed in to change notification settings

34j/colormap-complex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •