Make, customize, and/or use colormaps, any way you like.
Try to craft your visual delight interactively with the TastyKitchen UI, hosted here.
Or, 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
Check out the docs for more recipes!
To get started on your culinary color journey, install tastymap
with:
To get access to TastyKitchen UI, install tastymap
with:
Documentation: https://ahuang11.github.io/tastymap/
Source Code: https://github.com/ahuang11/tastymap
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4