{"id":19199814,"url":"https://github.com/rose-stl-lab/rose_colormap","last_synced_at":"2025-07-24T09:31:32.881Z","repository":{"id":63156253,"uuid":"565244748","full_name":"Rose-STL-Lab/rose_colormap","owner":"Rose-STL-Lab","description":"Colormap inspired by rose for Python matplotlib or plotly visualization","archived":false,"fork":false,"pushed_at":"2022-11-14T01:17:17.000Z","size":3538,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T01:18:00.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Rose-STL-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-12T19:34:51.000Z","updated_at":"2022-11-13T23:32:22.000Z","dependencies_parsed_at":"2022-11-14T02:16:30.113Z","dependency_job_id":null,"html_url":"https://github.com/Rose-STL-Lab/rose_colormap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rose-STL-Lab/rose_colormap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rose-STL-Lab%2Frose_colormap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rose-STL-Lab%2Frose_colormap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rose-STL-Lab%2Frose_colormap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rose-STL-Lab%2Frose_colormap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rose-STL-Lab","download_url":"https://codeload.github.com/Rose-STL-Lab/rose_colormap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rose-STL-Lab%2Frose_colormap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266821732,"owners_count":23989820,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T12:29:05.570Z","updated_at":"2025-07-24T09:31:32.826Z","avatar_url":"https://github.com/Rose-STL-Lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/Rose-STL-Lab/rose_colormap/main/test/figs/RoseMosaic.jpg\" width=\"600\"\u003e\u003c/p\u003e\n\u003ch2 align=\"center\"\u003eThe Rose Colormap - Rose-inspired Python Colormaps\u003c/h2\u003e\n\u003cp align=\"center\"\u003eFor Spatiotemporal Visualization\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://zzhou.info/LICENSE\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/87d0b0ec1c0a97dbf68ce4d3098de6912bca75aa006304dd0a55976e6673cbe1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64656c67616e2f6c6f677572752e737667\" alt=\"license\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-3.8+-yellow\" alt=\"python\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Version-1.0.0-green\" alt=\"version\"\u003e\n\u003c/p\u003e\n\n\n\n## What is the Rose Colormap?\n\nThe Rose Colormap is a series of Python colormaps / colorscales including *Rose*, *Rose Muted* and *Rose Vivid*. The pink tops and the green basis constitute a sharp contrast such that it is perfect for visualizing peaks in spatiotemporal dynamics.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/ZihaoZhou/DeepSTPP/master/example.gif\" width=\"400\" alt=\"intensity\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    Visualizing spatiotemporal event arrival rate using \u003ci\u003eRose Vivid\u003c/i\u003e\n\u003c/p\u003e\n\n## How do I install the Rose Colormap?\n\nThe Rose Colormap can be installed via pip from [PyPI](https://pypi.org/).\n\n```\npip install rose_colormap\n```\n\n## How do I use the Rose Colormap?\n\nThe Rose colormap can be used with either **Matplotlib** or **Plotly.py**.\n\n**(1) Matplotlib example usage**\n\n```python\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom rose_colormap import rose, rose_muted, rose_vivid\n\nx = np.random.rand(100)\ny = np.random.rand(100)\nt = np.arange(100)\nplt.scatter(x, y, c=t, cmap=rose_vivid)\nplt.colorbar()\nplt.show()\n```\n\n**(2) Plotly Express example usage**\n\n```python\nimport plotly.express as px\nimport numpy as np\nfrom rose_colormap.plotly import rose, rose_muted, rose_vivid\n\nx = np.random.rand(100)\ny = np.random.rand(100)\nt = np.arange(100)\nfig = px.scatter(x=x, y=y, color=t, color_continuous_scale=rose_vivid)\nfig.show()\n```\n\n**(3) Plotly Graph Object example usage**\n\n```python\nimport plotly.graph_objects as go\nimport numpy as np\nfrom rose_colormap.plotly import rose, rose_muted, rose_vivid\n\nx = np.outer(np.linspace(-3, 3, 32), np.ones(32))\ny = x.copy().T\nz = (np.sin(x ** 2) + np.cos(y ** 2))\nfig = go.Figure(go.Surface(x=x, y=y, z=z, colorscale=rose_vivid))\nfig.show()\n```\n\n## Uninstall\n\n```\npip uninstall rose_colormap\n```\n\n\n### Thanks To:\n\nMembers of the Rose lab for supporting this work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frose-stl-lab%2Frose_colormap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frose-stl-lab%2Frose_colormap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frose-stl-lab%2Frose_colormap/lists"}