Skip to content

Commit

Permalink
Fix label width
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Mar 5, 2024
1 parent 9e617fd commit 45cb3d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions post_processing/ci_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ function make_plots_generic(
fig = CairoMakie.Figure(; size = (900, 300 * MAX_NUM_ROWS))
if is_comparison
for (col, path) in enumerate(output_path)
# CairoMakie seems to use this Label to determine the width of the figure.
# Here we normalize the length so that all the columns have the same width.
LABEL_LENGTH = 40
normalized_path =
lpad(path, LABEL_LENGTH + 1, " ")[(end - LABEL_LENGTH):end]

CairoMakie.Label(fig[0, col], path)
end
end
Expand Down

0 comments on commit 45cb3d4

Please sign in to comment.