{"id":16859939,"url":"https://github.com/ahuang11/tastymap","last_synced_at":"2025-03-22T06:31:29.694Z","repository":{"id":196432896,"uuid":"696085364","full_name":"ahuang11/tastymap","owner":"ahuang11","description":"🎨 colormaps cooked for your palate","archived":false,"fork":false,"pushed_at":"2024-10-19T00:52:00.000Z","size":93,"stargazers_count":29,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T09:03:18.712Z","etag":null,"topics":["cmap","colorbar","colormaps","customize","data-visualization","matplotlib","palette","python"],"latest_commit_sha":null,"homepage":"https://ahuang11.github.io/tastymap/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahuang11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-25T03:46:07.000Z","updated_at":"2025-01-14T01:24:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6915f603-a952-467d-8cb4-08edcd6db3ea","html_url":"https://github.com/ahuang11/tastymap","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"b323f1843b76b011205c1ab8936aed789009780c"},"previous_names":["ahuang11/tastymap"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuang11%2Ftastymap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuang11%2Ftastymap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuang11%2Ftastymap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuang11%2Ftastymap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahuang11","download_url":"https://codeload.github.com/ahuang11/tastymap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmap","colorbar","colormaps","customize","data-visualization","matplotlib","palette","python"],"created_at":"2024-10-13T14:20:14.828Z","updated_at":"2025-03-22T06:31:29.180Z","avatar_url":"https://github.com/ahuang11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TastyMap\n\n## 🎨 Color palettes for your palate 😋\n\nMake, customize, and/or use colormaps, any way you like.\n\n![tastykitchen](https://github.com/ahuang11/tastymap/assets/15331990/ce015064-2ffb-4da2-bb8e-4818fdd751ab)\n\n## 📖 Quick start\n\nTry to craft your visual delight *interactively* with the TastyKitchen UI, hosted [here](https://huggingface.co/spaces/ahuang11/tastykitchen).\n\n```bash\ntastymap ui\n```\n\n\u003cimg width=\"1455\" alt=\"image\" src=\"https://github.com/user-attachments/assets/902bfc6b-e36c-4d3a-8c30-7c00276d45aa\"\u003e\n\nOr, start cooking from pre-made colormaps...\n\n```python\nfrom tastymap import cook_tmap\n\ntmap = cook_tmap(\"viridis\", num_colors=12, reverse=True)\ntmap\n```\n\n![viridis_12](https://github.com/ahuang11/tastymap/assets/15331990/ee9b429b-26d6-4eef-8128-a93f47a920ab)\n\nOr start from scratch!\n\n```python\nfrom tastymap import cook_tmap\n\ntmap = cook_tmap(\n    [\"red\", \"green\", \"blue\"],\n    num_colors=256,\n    reverse=True,\n    name=\"rgb\",\n)\ntmap\n```\n\n![rgb_256](https://github.com/ahuang11/tastymap/assets/15331990/b0964acc-56d1-4add-b9d4-fdc925756098)\n\nThen pair it with your plots effortlessly:\n\n```python\nimport numpy as np\nfrom matplotlib import pyplot as plt\nfrom tastymap import cook_tmap, pair_tbar\n\nfig, ax = plt.subplots()\nimg = ax.imshow(np.random.random((10, 10)))\ntmap = cook_tmap([\"red\", \"green\", \"blue\"], num_colors=256)\npair_tbar(\n    img,\n    tmap,\n    bounds=[0, 0.01, 0.5, 1],\n    labels=[\"zero\", \"tiny\", \"half\", \"one\"],\n    uniform_spacing=True,\n)\n```\n\n![example](https://github.com/ahuang11/tastymap/assets/15331990/04ab9ea7-d836-44b8-843d-2cb65eddfe63)\n\nOr if you need suggestions, get help from AI by providing a description of what you're imagining:\n\n```python\nfrom tastymap import ai\n\ntmap = ai.suggest_tmap(\"Pikachu\")\ntmap\n```\n\n![image](https://github.com/ahuang11/tastymap/assets/15331990/5a6f2bd4-4c4f-449c-9f2a-3352c956400a)\n\nCheck out the [docs](https://ahuang11.github.io/tastymap) for more recipes!\n\n## 📦 Installation\n\nTo get started on your culinary color journey, install `tastymap` with:\n\n```bash\npip install tastymap\n```\n\nTo get access to TastyKitchen UI, install `tastymap` with:\n\n```bash\npip install tastymap[ui]\n```\n\n---\n\n[![build](https://github.com/ahuang11/tastymap/workflows/Build/badge.svg)](https://github.com/ahuang11/tastymap/actions)\n[![codecov](https://codecov.io/gh/ahuang11/tastymap/branch/master/graph/badge.svg)](https://codecov.io/gh/ahuang11/tastymap)\n[![PyPI version](https://badge.fury.io/py/tastymap.svg)](https://badge.fury.io/py/tastymap)\n\n**Documentation**: \u003ca href=\"https://ahuang11.github.io/tastymap/\"\u003ehttps://ahuang11.github.io/tastymap/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/ahuang11/tastymap\" target=\"_blank\"\u003ehttps://github.com/ahuang11/tastymap\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuang11%2Ftastymap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahuang11%2Ftastymap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuang11%2Ftastymap/lists"}