Welcome to Colormap Complex documentation!¶
Installation & Usage
Project Info
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.