Unicodeplots: "join" subplots

This commit is contained in:
t-bltg 2021-08-31 00:21:11 +02:00 committed by GitHub
parent 4744152f86
commit 1e44dd7035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,11 @@ end
function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend}) function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
unicodeplots_rebuild(plt) 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 nothing
end end