Gaston: Remove missing debug leftovers
This commit is contained in:
parent
4f352d8e7c
commit
cac0c8d8d3
@ -98,7 +98,7 @@ _display(plt::Plot{GastonBackend}) = display(plt.o)
|
|||||||
# These functions are gaston specific
|
# These functions are gaston specific
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
|
|
||||||
function gaston_get_subplots(plt, n, layout, level)
|
function gaston_get_subplots(plt, n, layout)
|
||||||
nr, nc = size(layout)
|
nr, nc = size(layout)
|
||||||
sps = Array{Any}(undef, nr, nc)
|
sps = Array{Any}(undef, nr, nc)
|
||||||
for r ∈ 1:nr, c ∈ 1:nc # NOTE: col major
|
for r ∈ 1:nr, c ∈ 1:nc # NOTE: col major
|
||||||
@ -113,14 +113,14 @@ function gaston_get_subplots(plt, n, layout, level)
|
|||||||
return n, sps
|
return n, sps
|
||||||
end
|
end
|
||||||
|
|
||||||
function gaston_init_subplots(plt, sps, level)
|
function gaston_init_subplots(plt, sps)
|
||||||
sz = nr, nc = size(sps)
|
sz = nr, nc = size(sps)
|
||||||
for c ∈ 1:nc, r ∈ 1:nr # NOTE: row major
|
for c ∈ 1:nc, r ∈ 1:nr # NOTE: row major
|
||||||
sp = sps[r, c]
|
sp = sps[r, c]
|
||||||
if sp isa Subplot || sp === nothing
|
if sp isa Subplot || sp === nothing
|
||||||
gaston_init_subplot(plt, sp)
|
gaston_init_subplot(plt, sp)
|
||||||
else
|
else
|
||||||
gaston_init_subplots(plt, sp, level + 1)
|
gaston_init_subplots(plt, sp)
|
||||||
sz = max.(sz, size(sp))
|
sz = max.(sz, size(sp))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user