Skip to content

Commit

Permalink
feat: CMS style to include Petroff colors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejnovak committed Jan 25, 2024
1 parent 72dbc2c commit 048b2b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mplhep/styles/cms.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
from __future__ import annotations

import matplotlib as mpl
from cycler import cycler

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

cmap_petroff = ["#5790fc", "#f89c20", "#e42536", "#964a8b", "#9c9ca1", "#7a21dd"]

CMS = {
"axes.prop_cycle": cycler("color", cmap_petroff),
"font.sans-serif": ["TeX Gyre Heros", "Helvetica", "Arial"],
"font.family": "sans-serif",
"mathtext.fontset": "custom",
Expand Down

0 comments on commit 048b2b4

Please sign in to comment.