Skip to content

Commit

Permalink
fix: truncate long channel names on data_mc plots (#496)
Browse files Browse the repository at this point in the history
* only show first 30 characters of channel names on data/MC plots
  • Loading branch information
lorenzennio authored Dec 2, 2024
1 parent 5f96224 commit cd0af1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cabinetry/visualize/plot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def data_mc(

# figure label (region name)
at = mpl.offsetbox.AnchoredText(
label,
f"{label[:30]}..." if len(label) > 30 else label,
loc="upper left",
frameon=False,
prop={"fontsize": "large", "linespacing": 1.5},
Expand Down

0 comments on commit cd0af1b

Please sign in to comment.