Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Feb 3, 2025
1 parent 0f031a6 commit ca24f83
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 @@ -221,7 +221,7 @@ def data_mc(
ax1.set_xscale("log")
ax2.set_xscale("log")

# figure label (region name)
# figure label (region name and prediction label, truncate per line)
label = "\n".join(
[f"{line[:30]}..." if len(line) > 30 else line for line in label.split("\n")]
)
Expand Down

0 comments on commit ca24f83

Please sign in to comment.