Skip to content

feat: update default histogram colors to petroff10#557

Merged
alexander-held merged 6 commits intomasterfrom
feat/mpl-petroff
Mar 2, 2026
Merged

feat: update default histogram colors to petroff10#557
alexander-held merged 6 commits intomasterfrom
feat/mpl-petroff

Conversation

@alexander-held
Copy link
Copy Markdown
Member

@alexander-held alexander-held commented Mar 2, 2026

Switch from the seaborn-colorblind scheme to petroff10, which is described in more detail in https://arxiv.org/abs/2107.02270 and should be more accessible overall. The old behavior of visualize.data_mc can be restored with the colors kwarg using the colors of that style: ["#0072B2", "#009E73", "#D55E00", "#CC79A7", "#F0E442", "#56B4E9"], e.g. colors={"Background": "#0072B2", "Signal": "#009E73"}.

This new color cycle requires a new minimum of matplotlib>=3.10.0, which also allows getting rid of some version-specific handling from #366.

* update default histogram visualization to use petroff10 color cycle
* raise matplotlib lower version bound to 3.10

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2fb77e2) to head (19df3b8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #557   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2154      2145    -9     
  Branches       302       302           
=========================================
- Hits          2154      2145    -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexander-held alexander-held merged commit 6d2f8e2 into master Mar 2, 2026
8 checks passed
@alexander-held alexander-held deleted the feat/mpl-petroff branch March 2, 2026 17:42
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.

1 participant