From 4687db1c2deb119579db4774233fecce4b946e4f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 13:17:19 +0200 Subject: [PATCH] Automatic JuliaFormatter.jl run (#4925) Co-authored-by: t-bltg <13423344+t-bltg@users.noreply.github.com> --- src/layouts.jl | 1 - test/test_layouts.jl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layouts.jl b/src/layouts.jl index d3d5fb378..2eed33558 100644 --- a/src/layouts.jl +++ b/src/layouts.jl @@ -227,7 +227,6 @@ function GridLayout( heights = zeros(dims[1]) end if widths !== nothing - if sum(widths) != 1 error("The sum of widths must be 1!") end diff --git a/test/test_layouts.jl b/test/test_layouts.jl index df7e0eba1..182720e92 100644 --- a/test/test_layouts.jl +++ b/test/test_layouts.jl @@ -26,7 +26,7 @@ end background_color = :darkgray, background_color_inside = :lightgray, ) - @test pl.layout.heights == [0.05Plots.pct, 0.95Plots.pct] + @test pl.layout.heights == [0.05Plots.pct, 0.95Plots.pct] @test pl[:plot_title] == "My title" @test pl[:plot_titleindex] == 5