Skip to content

Commit 048b2b4

Browse files
committed
feat: CMS style to include Petroff colors
1 parent 72dbc2c commit 048b2b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mplhep/styles/cms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
from __future__ import annotations
22

33
import matplotlib as mpl
4+
from cycler import cycler
45

56
# PRL figsize / Elsevier figsize, Nature is somewhere in between
67
# single column width - 86 mm (3.386in) / 90 mm (3.543in)
78
# double column width - 172 mm (6.772in) / 180 mm (7.087in)
89
# For now size to 10
910

11+
cmap_petroff = ["#5790fc", "#f89c20", "#e42536", "#964a8b", "#9c9ca1", "#7a21dd"]
12+
1013
CMS = {
14+
"axes.prop_cycle": cycler("color", cmap_petroff),
1115
"font.sans-serif": ["TeX Gyre Heros", "Helvetica", "Arial"],
1216
"font.family": "sans-serif",
1317
"mathtext.fontset": "custom",

0 commit comments

Comments
 (0)