Skip to main content

perceptual-jp-colormaps

A perceptually uniform colormap generator for Matplotlib equipped with traditional-ish Japanese colors to serve as a fixed color palette.
Additions are welcome.
Python package

Why perceptually uniform colormaps? Can you not just use default Matplotlib colormaps?

  • non-perceptually uniform colormaps induce dangerous artifacts, as seen in the below image: top-view of pyramid. The left colormap introduces new features to the data.
  • Matplotlib perceptually uniform colormaps are simply not visually appealing and sometimes lack enough contrast. With this package, anyone can design colormaps to fit their visual style.

dependencies:

  • Python3:
    -- colour-science
    -- numpy -- logging
    -- scipy
    -- json
    -- pynverse
    -- matplotlib

tested on:

  • Windows 10
  • Linux
  • Python 3.8, 3.10, 3.12

expected to work on:

  • MacOS
  • all Python >=3.6 (support available for >=3.8)

install:

  • pip3 install jpcm or download source

run generator:

  • to create your own colormaps
    • as a package:
      • import jpcm
      • jpcm.register() will register all default colormaps and any additional ones via the optional custom_maps argument. Note any custom_maps should be of the following format (note the RGB key colors):
        cmaps = { 'def' : [[0,0,0],[255,0,0]], }
      • The optional datafile argument will cause jpcm to save all colormaps to that location as well.
    • directly via code:
      • edit maps.py with your preferred cmap styles, and run python3 gen.py or python3 gen.py --readme from /gen/

load colormaps:

  • import jpcm
  • jpcm.open(<filename>) will return a dictionary containing all the colormaps in the file at .
  • Note the file should be of the same type as the generated 'cmap.txt' from the generator

gallery













Metadata

Release files for jpcm 0.1.28

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

Source distribution (sdist)

Source distribution for jpcm 0.1.28
File Size Uploaded Provenance Actions
jpcm-0.1.28.tar.gz 13.2 kB Without provenance Details for jpcm-0.1.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jpcm 0.1.28
File Interpreter ABI Platform Actions
jpcm-0.1.28-py3-none-any.whl Python 3 none any Details for jpcm-0.1.28-py3-none-any.whl

Total release size: 27.1 kB

Release files / jpcm-0.1.28.tar.gz

Download URL jpcm-0.1.28.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
de88dcda727daa3514a39d55edcc1f43f45b230feb97de1ecdba4e42d0b25b0a
BLAKE2b-256 checksum
How to use checksums
bf80d6ebd083a1ab2fd2ef232b472052ecdbb75b4f51a2b35ccbb37b3af76e7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / jpcm-0.1.28-py3-none-any.whl

Download URL jpcm-0.1.28-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f5fed1999e797635c7ea2958b2c8f320f00a2c5594f08ab434852cdd7d2a682
BLAKE2b-256 checksum
How to use checksums
861cd721c09eb001e22cae34c0d44c5491396c691855b1fa2767d72e5b526e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for jpcm 0.1.28

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.28 This release

2 release files No provenance

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