From 1e44dd70352c8eabed6dcda72197529368cca5f2 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 31 Aug 2021 00:21:11 +0200 Subject: [PATCH] Unicodeplots: "join" subplots --- src/backends/unicodeplots.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index 8177f435..f65921ed 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -169,7 +169,11 @@ end function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend}) unicodeplots_rebuild(plt) - foreach(x -> (show(io, x); println(io)), plt.o) + n = length(plt.o) + for (i, p) in enumerate(plt.o) + show(io, p) + i < n && println(io) + end nothing end