{"id":27997338,"url":"https://github.com/34j/colormap-complex","last_synced_at":"2025-05-08T21:58:24.046Z","repository":{"id":288903142,"uuid":"969514564","full_name":"34j/colormap-complex","owner":"34j","description":"Complex / 2d multivariate bivariate colormap / Domain coloring for Matplotlib, Plotly etc. (pure-numpy)","archived":false,"fork":false,"pushed_at":"2025-05-08T01:55:35.000Z","size":1974,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T21:58:17.725Z","etag":null,"topics":["bivariate","bivariate-analysis","color","colormap","colour-science","complex-analysis","complex-numbers","domain-coloring","domain-colouring","matplotlib","multivariate","multivariate-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/34j.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":["34j"]}},"created_at":"2025-04-20T10:23:13.000Z","updated_at":"2025-05-08T01:55:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4512cf0-29ac-4976-920c-77878648b677","html_url":"https://github.com/34j/colormap-complex","commit_stats":null,"previous_names":["34j/colormap-complex"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fcolormap-complex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fcolormap-complex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fcolormap-complex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fcolormap-complex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/34j","download_url":"https://codeload.github.com/34j/colormap-complex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154976,"owners_count":21862621,"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":["bivariate","bivariate-analysis","color","colormap","colour-science","complex-analysis","complex-numbers","domain-coloring","domain-colouring","matplotlib","multivariate","multivariate-analysis"],"created_at":"2025-05-08T21:58:23.496Z","updated_at":"2025-05-08T21:58:24.041Z","avatar_url":"https://github.com/34j.png","language":"Python","readme":"# Colormap Complex\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/34j/colormap-complex/actions/workflows/ci.yml?query=branch%3Amain\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/34j/colormap-complex/ci.yml?branch=main\u0026label=CI\u0026logo=github\u0026style=flat-square\" alt=\"CI Status\" \u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://colormap-complex.readthedocs.io\"\u003e\n    \u003cimg src=\"https://img.shields.io/readthedocs/colormap-complex.svg?logo=read-the-docs\u0026logoColor=fff\u0026style=flat-square\" alt=\"Documentation Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/34j/colormap-complex\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/34j/colormap-complex.svg?logo=codecov\u0026logoColor=fff\u0026style=flat-square\" alt=\"Test coverage percentage\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/astral-sh/uv\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\" alt=\"uv\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pre-commit/pre-commit\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\u0026style=flat-square\" alt=\"pre-commit\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/colormap-complex/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/colormap-complex.svg?logo=python\u0026logoColor=fff\u0026style=flat-square\" alt=\"PyPI Version\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/pyversions/colormap-complex.svg?style=flat-square\u0026logo=python\u0026amp;logoColor=fff\" alt=\"Supported Python versions\"\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/l/colormap-complex.svg?style=flat-square\" alt=\"License\"\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://colormap-complex.readthedocs.io\" target=\"_blank\"\u003ehttps://colormap-complex.readthedocs.io \u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/34j/colormap-complex\" target=\"_blank\"\u003ehttps://github.com/34j/colormap-complex \u003c/a\u003e\n\n---\n\nComplex / 2d colormap\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n```shell\npip install colormap-complex\n```\n\n## Usage\n\n```python\nfrom colormap_complex import colormap\nimport numpy as np\n\nlin = np.linspace(-1, 1, 100)\nx, y = np.meshgrid(lin, lin)\nz = x + 1j * y\nc = colormap(type=\"oklab\")(z.real, z.imag, scale=True)\nplt.imshow(c, extent=(-1, 1, -1, 1), origin='lower')\n```\n\n### All colormaps\n\n![colormaps](https://raw.githubusercontent.com/34j/colormap-complex/main/colormap-all.jpg)\n\n### Examples\n\n![z^(2/3+i)](https://raw.githubusercontent.com/34j/colormap-complex/main/complex-function-z-2-3-i.jpg)\n![z^(2/3+i)](https://raw.githubusercontent.com/34j/colormap-complex/main/complex-function-z-2-3-i-cyl.jpg)\n![z^(2/3+i)](https://raw.githubusercontent.com/34j/colormap-complex/main/complex-function-z-2-3-i-cyl-magnitude.jpg)\n\n### Description\n\n- `\"bremm\", \"cubediagonal\", \"schumann\", \"steiger\", \"teulingfig2\", \"ziegler\"` colormaps are collected from [spinthil/pycolormap-2d](https://github.com/spinthil/pycolormap-2d) which is based on:\n  \u003e M. Steiger, J. Bernard, S. Thum, S. Mittelstädt, M. Hutter, D. A. Keim, and J. Kohlhammer, “Explorative Analysis of 2D Color Maps,” in International Conferences in Central Europe on Computer Graphics, Visualization and Computer Vision, 2015, vol. 23, pp. 151–160.\n- Other colormaps are built on top of [colour-science/colour](https://github.com/colour-science/colour) and created by the author.\n- `\"oklab\", \"prolab\"` are perceptually uniform (lightness) colormaps.\n- `\"oklch\", \"prolch\"` are perceptually uniform (chroma) colormaps. X axis corresponds to Hue and Y axis to Lightness.\n\n## Alternatives\n\n- [nschloe/cplot: :rainbow: Plot complex functions](https://github.com/nschloe/cplot/tree/main)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## Credits\n\n[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/copier-org/copier)\n\nThis package was created with\n[Copier](https://copier.readthedocs.io/) and the\n[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)\nproject template.\n","funding_links":["https://github.com/sponsors/34j"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F34j%2Fcolormap-complex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F34j%2Fcolormap-complex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F34j%2Fcolormap-complex/lists"}