A Python package mapping 2D coordinates to colors based on different 2D color maps.
Project description
Colormap 2D Python Package
This package allows to map 2D coordinates to different 2D color maps.
The following color maps are available:
ColorMap2DBremm | ColorMap2DCubeDiagonal | ColorMap2DSchumann |
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pycolormap_2d-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: pycolormap_2d-1.0.10-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e7a96d4fa7440fb160922ac9df16bfba0db8b3d67c328eee0aef8c7b10fc42 |
|
MD5 | 721bff36e0e37794052d76d8c84be3b0 |
|
BLAKE2b-256 | 99e2c9880c40fa929c7e1be1b1cb022c89756776186fc7122dfcb7c08d423819 |