Skip to main content

TastyMap

🎨 Color palettes for your palate 😋

Make, customize, and/or use colormaps, any way you like.

tastykitchen

📖 Quick start

Start cooking from pre-made colormaps...

from tastymap import cook_tmap

tmap = cook_tmap("viridis", num_colors=12, reverse=True)
tmap

viridis_12

Or start from scratch!

from tastymap import cook_tmap

tmap = cook_tmap(
    ["red", "green", "blue"],
    num_colors=256,
    reverse=True,
    name="rgb",
)
tmap

rgb_256

Then pair it with your plots effortlessly:

import numpy as np
from matplotlib import pyplot as plt
from tastymap import cook_tmap, pair_tbar

fig, ax = plt.subplots()
img = ax.imshow(np.random.random((10, 10)))
tmap = cook_tmap(["red", "green", "blue"], num_colors=256)
pair_tbar(
    img,
    tmap,
    bounds=[0, 0.01, 0.5, 1],
    labels=["zero", "tiny", "half", "one"],
    uniform_spacing=True,
)

example

Or if you need suggestions, get help from AI by providing a description of what you're imagining:

from tastymap import ai

tmap = ai.suggest_tmap("Pikachu")
tmap

image

Try to craft your visual delight interactively with the TastyKitchen UI, hosted here.

tastymap ui

Check out the docs for more recipes!

📦 Installation

To get started on your culinary color journey, install tastymap with:

pip install tastymap

To get access to TastyKitchen UI, install tastymap with:

pip install tastymap[ui]

build codecov PyPI version

Documentation: https://ahuang11.github.io/tastymap/

Source Code: https://github.com/ahuang11/tastymap

Metadata

Release files for tastymap 0.4.1

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

Source distribution (sdist)

Source distribution for tastymap 0.4.1
File Size Uploaded Provenance Actions
tastymap-0.4.1.tar.gz 23.2 kB Without provenance Details for tastymap-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 41.0 kB

Release files / tastymap-0.4.1.tar.gz

Download URL tastymap-0.4.1.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c1ca63c4a0ac93147db8fde11d7aee79a4d4aa14dbe15287482bdf67dd63a76c
BLAKE2b-256 checksum
How to use checksums
0e13add749d8ce20c9b30fca40b526367c44dbe9ca5e45f5a18d77db3c0d3407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / tastymap-0.4.1-py3-none-any.whl

Download URL tastymap-0.4.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea8033126ef308c1d15ee6c82a2ad5522142446a467e2b4c61ba2b3d392b94b3
BLAKE2b-256 checksum
How to use checksums
b2be2c426c77ba08183aa87d98871cb25d6191b809b32b97dcdd1837f39e6be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for tastymap 0.4.1

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.

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