Skip to content

Commit 2a6bcae

Browse files
zlmarshallZach Marshallpre-commit-ci[bot]
authored
feat: Adding ATLAS recommended color wheel (#508)
* Adding ATLAS recommended color wheel Adding a recommended 10-color palette for ATLAS style. After discussion within the D&I group in ATLAS, we decided to adopt conceptually the same offering as CMS recently did, with a 10-color accessible color palette as a default offering based on https://arxiv.org/abs/2107.02270 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Should know better than to think I can push without running the tests... --------- Co-authored-by: Zach Marshall <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c912365 commit 2a6bcae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/mplhep/styles/atlas.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
from typing import Any
44

55
import matplotlib as mpl
6+
from cycler import cycler
7+
8+
# Color wheel from https://arxiv.org/pdf/2107.02270 Table 1, 10 color palette
9+
color_sequence = [
10+
"#3f90da",
11+
"#ffa90e",
12+
"#bd1f01",
13+
"#94a4a2",
14+
"#832db6",
15+
"#a96b59",
16+
"#e76300",
17+
"#b9ac70",
18+
"#717581",
19+
"#92dadd",
20+
]
621

722
_base = {
823
# fonts and text
@@ -34,6 +49,7 @@
3449
"figure.subplot.left": 0.16,
3550
"figure.subplot.right": 0.95,
3651
# axes
52+
"axes.prop_cycle": cycler("color", color_sequence),
3753
"axes.titlesize": "xx-large",
3854
"axes.labelsize": "x-large",
3955
"axes.linewidth": 1,

0 commit comments

Comments
 (0)