From 603dc10788469c02d947ffb052c4338e0f2099e2 Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Sun, 1 Aug 2021 01:23:44 +0200 Subject: [PATCH] Gaston: fix broken multiplot --- src/backends/gaston.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 43367a59..e047e0b6 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -177,15 +177,13 @@ function gaston_multiplot_pos_size!(n::Int, plt, origin_size) nr, nc = size(origin_size) for c ∈ 1:nc, r ∈ 1:nr # NOTE: row major xy_wh = origin_size[r, c] - if xy_wh === nothing - continue + if xy_wh isa Array + n = gaston_multiplot_pos_size!(n, plt, xy_wh) elseif xy_wh isa Tuple x, y, w, h = xy_wh if (gsp = plt.o.subplots[n += 1]) !== nothing gsp.axesconf = "set origin $x,$y\nset size $w,$h\n" * gsp.axesconf end - else - n = gaston_multiplot_pos_size!(n, plt, xy_wh) end end return n