OKPaletteLab
Smooth color maps for Plotly and Matplotlib.
- Color maps are designed in the Oklch color space to create smooth gradients and improve data visualization.
- The following types of color maps are provided:
- Sequential color maps for general ranges.
- Diverging color maps for ranges centered at zero. This project provides diverging color maps for both light and dark modes.
- Cyclic color maps for periodic ranges.
- Currently supports the following libraries:
Sample Figures
Sample Figures in Light Mode
Sample Figures in Dark Mode
Installation
You can install the package via pip:
pip install ok_palette_lab
Basic Usage
-
With Plotly:
-
ok_palette_lab.plotlypackage provides color maps (called "color scales" in Plotly). -
Select one and use it as follows:
figure = plotly.graph_objects.Figure() figure.add_heatmap( # ... your data here ... # Specify a color map. colorscale=ok_palette_lab.plotly.autumn, )
-
-
With matplotlib:
-
ok_palette_lab.matplotlibpackage has color maps. -
Select one and use it as follows:
figure, axes = matplotlib.pyplot.subplots() heatmap = axes.imshow( # ... your data here ... # Specify a color map. cmap=ok_palette_lab.matplotlib.autumn, )
-
Simple Examples
Documentation
Documentation is available at web site. Documentation for each version can be viewed using the version switcher at the bottom left of the page.
Development
This project was created in January 2026 and is under active development. The following features are planned for future releases:
- Support for more graphing libraries in Python.
- Support for ParaView.
Repositories
License
This project is licensed under the MIT License. See LICENSE.txt in the repository for details.
Graphics created using the color maps in this project can be used freely without restriction.
Metadata
Release files for ok_palette_lab 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ok_palette_lab-0.5.0.tar.gz | 23.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ok_palette_lab-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.5 kB
Release files / ok_palette_lab-0.5.0.tar.gz
| Download URL | ok_palette_lab-0.5.0.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7eb2d662305b2d9942fefe5bbe73d772083f16bdb7822f6a1668f296523a687
|
|
BLAKE2b-256 checksum How to use checksums |
14d9eff33cd8d6bece854ba299f5b3ec29d8ac27d8fa8e5c0cb5080f7cc96f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/5.15.154+
|
Release files / ok_palette_lab-0.5.0-py3-none-any.whl
| Download URL | ok_palette_lab-0.5.0-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2049d51d4b5ef24226f64279806d9d71b9688b29f5deb1e7d847996890769c82
|
|
BLAKE2b-256 checksum How to use checksums |
35749e90c3d4e69da2c6dba2b15569ab97eabe8e109663376914a1c941fc935e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/5.15.154+
|
Security for ok_palette_lab 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.