{"id":16371566,"url":"https://github.com/tom-draper/matplotlib-colors","last_synced_at":"2025-10-13T21:01:51.526Z","repository":{"id":65345848,"uuid":"560865751","full_name":"tom-draper/matplotlib-colors","owner":"tom-draper","description":"A collection of curated color profiles for matplotlib.","archived":false,"fork":false,"pushed_at":"2022-11-09T13:51:27.000Z","size":558,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T18:50:11.071Z","etag":null,"topics":["colors","colorschemes","data-visualization","graph","matplotlib","matplotlib-styles","plot","python","styles","vizualisation"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/matplotlib-colors/","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/tom-draper.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-02T12:50:40.000Z","updated_at":"2023-10-18T10:25:58.000Z","dependencies_parsed_at":"2023-01-22T10:15:49.868Z","dependency_job_id":null,"html_url":"https://github.com/tom-draper/matplotlib-colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tom-draper/matplotlib-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fmatplotlib-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fmatplotlib-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fmatplotlib-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fmatplotlib-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom-draper","download_url":"https://codeload.github.com/tom-draper/matplotlib-colors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-draper%2Fmatplotlib-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274174271,"owners_count":25235203,"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-09-08T02:00:09.813Z","response_time":121,"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":["colors","colorschemes","data-visualization","graph","matplotlib","matplotlib-styles","plot","python","styles","vizualisation"],"created_at":"2024-10-11T03:08:53.304Z","updated_at":"2025-10-13T21:01:46.486Z","avatar_url":"https://github.com/tom-draper.png","language":"Python","readme":"# Matplotlib Colors\n\nA collection of curated colors and colormaps for matplotlib.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://user-images.githubusercontent.com/41476809/200025127-1d4367cd-4ace-44fd-8a50-8af938b828f8.png\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\npip install matplotlib-colors\n```\n\n## Demo\n\n[All colors and colormaps](matplotlib_colors/README.md)\n\n## Examples\n\n### Colormaps\n\nCall the `register_cmaps` function to add the new colormaps to matplotlib. Then the desired colormap can be specified by name as the `cmap` argument.\n\n```py\nfrom matplotlib_colors import register_cmaps\nregister_cmaps()  # Adds new colormaps to matplotlib\n\n# Build your data viz as normal with matplotlib\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\ny = [x * x for x in x]\nplt.scatter(x, y, c=range(12), cmap='analyst')  # Specify one of the new colormap names\nplt.colorbar()\nplt.show()\n```\n\nAlternatively, all new colormap objects can be accessed directly by importing the `colormaps` dict and specifying a colormap by name.\n\n```py\nfrom matplotlib_colors import colormaps\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\ny = [x * x for x in x]\nplt.scatter(x, y, c=range(12), cmap=colormaps['analyst'])  # Specify a colormap from colormaps dict\nplt.colorbar()\nplt.show()\n```\n\nThe full list of colormap names can be found by importing the `colormap_names` list.\n\n```py\nfrom matplotlib_colors import colormap_names\n```\n\n### Colors\n\nThe package includes a large selection of colors that can be accessed directly by importing `colors` and specifying a color name.\n\n```py\nfrom matplotlib_colors import colors\nimport matplotlib.pyplot as plt\n\nx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\ny = [x * x for x in x]\nplt.scatter(x, y, c=colors['pl_red'])  # All points colored with PL_RED\nplt.colorbar()\nplt.show()\n```\n\nThe full list of color names can be found by importing the `color_names` list.\n\n```py\nfrom matplotlib_colors import color_names\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-draper%2Fmatplotlib-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom-draper%2Fmatplotlib-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-draper%2Fmatplotlib-colors/lists"}