Color palettes for your palate
Project description
TastyMap
🎨 Color palettes for your palate 😋
Make, customize, and/or use colormaps, any way you like.
📖 Quick start
Start cooking from pre-made colormaps...
from tastymap import cook_tmap
tmap = cook_tmap("viridis", num_colors=12, reverse=True)
tmap
Or start from scratch!
from tastymap import cook_tmap
tmap = cook_tmap(
["red", "green", "blue"],
num_colors=256,
reverse=True,
name="rgb",
)
tmap
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,
)
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
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]
Documentation: https://ahuang11.github.io/tastymap/
Source Code: https://github.com/ahuang11/tastymap
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tastymap-0.4.1.tar.gz
.
File metadata
- Download URL: tastymap-0.4.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ca63c4a0ac93147db8fde11d7aee79a4d4aa14dbe15287482bdf67dd63a76c |
|
MD5 | 02797edff7d9a0921b9bc16af8846041 |
|
BLAKE2b-256 | 0e13add749d8ce20c9b30fca40b526367c44dbe9ca5e45f5a18d77db3c0d3407 |
File details
Details for the file tastymap-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: tastymap-0.4.1-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8033126ef308c1d15ee6c82a2ad5522142446a467e2b4c61ba2b3d392b94b3 |
|
MD5 | 1b45555c1052907884a02f449d25d1e8 |
|
BLAKE2b-256 | b2be2c426c77ba08183aa87d98871cb25d6191b809b32b97dcdd1837f39e6be9 |