Skip to main content

Colormap 2D Python Package

PyPI Docs Apache 2.0

This package allows to map 2D coordinates to different 2D color maps.

The following color maps are available:

Bremm Cube Diagonal Schumann
ColorMap2DBremm ColorMap2DCubeDiagonal ColorMap2DSchumann
Steiger Teuling 2 Ziegler
ColorMap2DSteiger ColorMap2DTeuling2 ColorMap2DZiegler

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

For a JavaScript implementation, refer to the Color2D project by Dominik Jäckle.

Usage

Basic usage with normalized inputs (i.e., x- and y-coordinates ranging from 0 to 1):

from pycolormap_2d import ColorMap2DBremm

# Create the color map object.
cmap = ColorMap2DBremm()

# Get the color value.
color = cmap(0.2, 0.6)

Optionally, ranges for the input x and y input ranges can be passed during object creation:

from pycolormap_2d import ColorMap2DBremm

# Create the color map object.
cmap = ColorMap2DBremm(range_x=(-10, 30), range_y=(1, 11))

# Get the color value.
color = cmap(10.0, 8.5)

Metadata

Release files for pycolormap-2d 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycolormap-2d 1.1.7
File Size Uploaded
pycolormap_2d-1.1.7.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycolormap-2d 1.1.7
File Interpreter ABI Platform
pycolormap_2d-1.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / pycolormap_2d-1.1.7.tar.gz

Download URL pycolormap_2d-1.1.7.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
249525101c057eff97796797e2c748b43129f743482ef0e80a34d569f49891aa
BLAKE2b-256 checksum
How to use checksums
70c827fac2cc8cda90ab4d9db98b5a45d120fe87658c8e632cbc2d56c5b7312a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pycolormap_2d-1.1.7-py3-none-any.whl

Download URL pycolormap_2d-1.1.7-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e1ba45c0c8f7ccc2f04574e042bffbaad99bb7cee782f986fe1b6b63d4c69a82
BLAKE2b-256 checksum
How to use checksums
0f99a2df18de94c89402dd3018cfd099a0f5181e2e98d6e9d2fea364e9dc49fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files

1.1.6

2 release files

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page