Gaston: fix broken multiplot
This commit is contained in:
parent
bf16a97cd5
commit
603dc10788
@ -177,15 +177,13 @@ function gaston_multiplot_pos_size!(n::Int, plt, origin_size)
|
|||||||
nr, nc = size(origin_size)
|
nr, nc = size(origin_size)
|
||||||
for c ∈ 1:nc, r ∈ 1:nr # NOTE: row major
|
for c ∈ 1:nc, r ∈ 1:nr # NOTE: row major
|
||||||
xy_wh = origin_size[r, c]
|
xy_wh = origin_size[r, c]
|
||||||
if xy_wh === nothing
|
if xy_wh isa Array
|
||||||
continue
|
n = gaston_multiplot_pos_size!(n, plt, xy_wh)
|
||||||
elseif xy_wh isa Tuple
|
elseif xy_wh isa Tuple
|
||||||
x, y, w, h = xy_wh
|
x, y, w, h = xy_wh
|
||||||
if (gsp = plt.o.subplots[n += 1]) !== nothing
|
if (gsp = plt.o.subplots[n += 1]) !== nothing
|
||||||
gsp.axesconf = "set origin $x,$y\nset size $w,$h\n" * gsp.axesconf
|
gsp.axesconf = "set origin $x,$y\nset size $w,$h\n" * gsp.axesconf
|
||||||
end
|
end
|
||||||
else
|
|
||||||
n = gaston_multiplot_pos_size!(n, plt, xy_wh)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return n
|
return n
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user