UnicodePlots: Allow simple nesting

This commit is contained in:
t-bltg 2021-09-01 12:48:31 +02:00 committed by GitHub
parent 2dc812aa15
commit 31d33e6be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,8 @@ function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
lmax = 0
for c in 1:nc
l = plt.layout[r, c]
if l isa GridLayout
@error "UnicodePlots: nested layout is currently unsupported !"
if l isa GridLayout && size(l) != (1, 1)
@error "UnicodePlots: complex nested layout is currently unsupported !"
else
if get(l.attr, :blank, false)
lines_colored[r, c] = lines_uncolored[r, c] = nothing