Skip to content

Add qoolqit.utils.colors with the Qoolqit palette and colormaps - #428

Open
alessandro-santini wants to merge 8 commits into
mainfrom
as/427-add-qoolqit-restyling-module-to-apply-standard-brand-color-palette-to-matplotlib
Open

Add qoolqit.utils.colors with the Qoolqit palette and colormaps#428
alessandro-santini wants to merge 8 commits into
mainfrom
as/427-add-qoolqit-restyling-module-to-apply-standard-brand-color-palette-to-matplotlib

Conversation

@alessandro-santini

@alessandro-santini alessandro-santini commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds qoolqit/utils/colors.py, defining the qoolqit palette (9 colors) and
13 colormaps, and registering them with Matplotlib by name.

Purely additive: the import registers new names but never touches rcParams, so
existing plots are unaffected, no Matplotlib built-in is overwritten.

Colors apply only where they are asked for explicitly.

Usage

from qoolqit.utils import colors

plt.plot(x, y, color="mint_green")
plt.imshow(data, cmap="purple_mint")
plt.imshow(signed, cmap="orange_mint_dark", vmin=-v, vmax=v)

What's registered

  • Colors: metal_blue, neon_purple, mint_green, soft_orange,
    dark_green, neon_blue, soft_green, bright_green, neutral_gray.

  • Colormaps: <low>_<high> diverging (purple_mint, orange_mint,
    purple_orange, blue_mint, each with a _dark near-black-center variant)
    and <hue> sequential (mint, purple, orange, deep, night), plus
    every _r reverse — 26 in total.

    Palette

Name Hex Name Hex
dark_green #0F1E23 neon_blue #92C8E5
soft_green #173035 neon_purple #867BFA
bright_green #E1F6E9 soft_orange #FF986E
mint_green #00C887 neutral_gray #506166
metal_blue #397378

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://pasqal-io.github.io/qoolqit/pr-preview/pr-428/

Built to branch gh-pages at 2026-08-07 12:45 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@alessandro-santini
alessandro-santini marked this pull request as ready for review August 4, 2026 16:08
Comment thread qoolqit/__init__.py Outdated
@alessandro-santini alessandro-santini changed the title Add qoolqit.utils.colors with the PASQAL brand palette and colormaps Add qoolqit.utils.colors with the Qoolqit palette and colormaps Aug 5, 2026
alessandro-santini and others added 3 commits August 5, 2026 11:26
Co-authored-by: Stefano Grava <42062939+sgrava@users.noreply.github.com>
…-standard-brand-color-palette-to-matplotlib

merging main to the branch
…-standard-brand-color-palette-to-matplotlib

merge main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a qoolqit.utils.colors module with the qoolqit palette and colormaps

2 participants