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