{"id":37069602,"url":"https://github.com/johngoertz/vsup","last_synced_at":"2026-01-14T08:00:56.880Z","repository":{"id":293473638,"uuid":"984152999","full_name":"JohnGoertz/vsup","owner":"JohnGoertz","description":"Value-Suppressing Uncertainty Palettes","archived":false,"fork":false,"pushed_at":"2025-07-04T16:13:37.000Z","size":1774,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T16:58:40.634Z","etag":null,"topics":["color-palette","color-scheme","data-visualization","dataviz","uncertainty","uncertainty-visualisation"],"latest_commit_sha":null,"homepage":"http://johngoertz.github.io/vsup","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnGoertz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-15T13:30:08.000Z","updated_at":"2025-07-04T16:18:07.000Z","dependencies_parsed_at":"2025-05-15T14:43:10.586Z","dependency_job_id":"31e93aa9-99aa-4696-b917-226e6d7720ab","html_url":"https://github.com/JohnGoertz/vsup","commit_stats":null,"previous_names":["johngoertz/vsup"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JohnGoertz/vsup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnGoertz%2Fvsup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnGoertz%2Fvsup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnGoertz%2Fvsup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnGoertz%2Fvsup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnGoertz","download_url":"https://codeload.github.com/JohnGoertz/vsup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnGoertz%2Fvsup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color-palette","color-scheme","data-visualization","dataviz","uncertainty","uncertainty-visualisation"],"created_at":"2026-01-14T08:00:45.263Z","updated_at":"2026-01-14T08:00:56.757Z","avatar_url":"https://github.com/JohnGoertz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSUP: Value-Suppressing Uncertainty Palettes\n\nA Python package for visualizing data with uncertainty using Value-Suppressing Uncertainty Palettes (VSUPs). Inspired by https://github.com/uwdata/vsup.\n\n## Installation\n\n```bash\npip install vsup\n```\n\n### Development\n\nThe project is developed with [uv](https://docs.astral.sh/uv/).\n\nTo check for a local python environment, run:\n\n```bash\nuv run python\n```\n\nAlso install the [pre-commit](https://pre-commit.com/) hooks with:\n\n```bash\nuv tool install pre-commit\npre-commit install\n```\n\n## Usage\n\n```python\nfrom vsup import VSUP\nimport numpy as np\nimport matplotlib.pyplot as plt\n\n# Create a grid of values and uncertainties for better visualization\nn_points = 50\nstep = 1 / n_points\nvalues = np.linspace(step / 2, 1 - step / 2, n_points)\nuncertainties = np.linspace(step / 2, 1 - step / 2, n_points)\n\n# Create a 2D grid\nvalues, uncertainties = np.meshgrid(values, uncertainties)\n\n# Colorize the data\naxs = plt.subplots(3, 3, figsize=(9, 9))[1]\n\nfor row, quantization in zip(axs, [None, \"linear\", \"tree\"]):\n    for ax, mode in zip(row, [\"us\", \"ul\", \"usl\"]):\n        vsup = VSUP(palette=\"flare\", mode=mode, quantization=quantization)\n\n        colors = vsup(values, uncertainties)\n        ax.pcolormesh(values, uncertainties, colors)\n        # ax.set_title(f\"{mode}\")  #\\n({description})\")\n        ax.set_xlabel(\"Value\")\n        ax.set_ylabel(\"Uncertainty\")\n```\n![flare example](examples/flare_example.png)\n\n## Features\n\n- Three visualization modes:\n  - USL: Uncertainty mapped to Saturation (chroma) and Lightness\n  - US: Uncertainty mapped to Saturation\n  - UL: Uncertainty mapped to Lightness\n- Two quantization mods:\n  - Linear: independent binning of values and uncertainties\n  - Tree: value bins depend on uncertainty bin: lower uncertainty, higher value resolution\n- Support for any matplotlib and seaborn colormaps\n\n## Citation\n\nIf you use this package in your research, please cite the original VSUP paper:\n\n```\n@inproceedings{2018-uncertainty-palettes,\n title = {Value-Suppressing Uncertainty Palettes},\n author = {Michael Correll AND Dominik Moritz AND Jeffrey Heer},\n booktitle = {ACM Human Factors in Computing Systems (CHI)},\n year = {2018},\n url = {http://idl.cs.washington.edu/papers/uncertainty-palettes},\n}\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohngoertz%2Fvsup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohngoertz%2Fvsup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohngoertz%2Fvsup/lists"}