From 31d33e6be452915feaa031b147b4f761aaeb9122 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Wed, 1 Sep 2021 12:48:31 +0200 Subject: [PATCH] UnicodePlots: Allow simple nesting --- src/backends/unicodeplots.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index f62b2a5a..d103be55 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -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