support sixel
This commit is contained in:
parent
9ff65b4003
commit
65e3dcf3ad
@ -114,7 +114,7 @@ function addUnicodeSeries!(
|
||||
elseif st == :spy
|
||||
return UnicodePlots.spy(series[:z].surf; kw...)
|
||||
elseif st == :image
|
||||
return UnicodePlots.imshow(series[:z].surf; kw...)
|
||||
return UnicodePlots.image(series[:z].surf; kw...)
|
||||
end
|
||||
|
||||
series_kw = (;)
|
||||
@ -195,6 +195,13 @@ Base.show(io::IO, plt::Plot{UnicodePlotsBackend}) = _show(io, MIME("text/plain")
|
||||
function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
|
||||
unicodeplots_rebuild(plt)
|
||||
nr, nc = size(plt.layout)
|
||||
if nr == 1 && nc == 1 # fast path
|
||||
for p in plt.o
|
||||
show(io, p)
|
||||
println(io)
|
||||
end
|
||||
else
|
||||
# FIXME: sixel unsupported
|
||||
lines_colored = Array{Union{Nothing,Vector{String}}}(undef, nr, nc)
|
||||
lines_uncolored = copy(lines_colored)
|
||||
l_max = zeros(Int, nr)
|
||||
@ -243,6 +250,7 @@ function _show(io::IO, ::MIME"text/plain", plt::Plot{UnicodePlotsBackend})
|
||||
end
|
||||
r < nr && println(io)
|
||||
end
|
||||
end
|
||||
nothing
|
||||
end
|
||||
|
||||
|
||||
@ -1286,7 +1286,6 @@ _backend_skips = Dict(
|
||||
:inspectdr => [4, 6, 10, 22, 24, 28, 30, 38, 43, 45, 47, 48, 49, 50, 51, 55, 56],
|
||||
:unicodeplots => [
|
||||
5, # limits issue
|
||||
6, # embedded images unsupported
|
||||
16, # nested layout unsupported
|
||||
21, # custom markers unsupported
|
||||
22, # contours unsupported
|
||||
@ -1302,7 +1301,7 @@ _backend_skips = Dict(
|
||||
47, # mesh3D unsupported
|
||||
49, # polar heatmap
|
||||
50, # 3D surface unsupported
|
||||
51, # embedded images unsupported
|
||||
51, # drawing on top of image unsupported
|
||||
52, # 3D quiver unsupported
|
||||
55, # 3D unsupported
|
||||
56, # barplots
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user