This commit is contained in:
t-bltg 2022-02-07 19:58:24 +01:00
parent ed50b7fcb4
commit 44b81fa94d

View File

@ -98,7 +98,14 @@ function unicodeplots_rebuild(plt::Plot{UnicodePlotsBackend})
o = UnicodePlots.Plot(x, y, plot_3d ? z : nothing, _canvas_map[canvas]; kw...) o = UnicodePlots.Plot(x, y, plot_3d ? z : nothing, _canvas_map[canvas]; kw...)
for series in series_list(sp) for series in series_list(sp)
o = addUnicodeSeries!(sp, o, kw, series, sp[:legend_position] !== :none, plot_3d) o = addUnicodeSeries!(
sp,
o,
kw,
series,
sp[:legend_position] !== :none,
plot_3d,
)
end end
for ann in sp[:annotations] for ann in sp[:annotations]
@ -135,7 +142,7 @@ function addUnicodeSeries!(
kw, kw,
series, series,
addlegend::Bool, addlegend::Bool,
plot_3d::Bool plot_3d::Bool,
) )
st = series[:seriestype] st = series[:seriestype]
@ -188,7 +195,8 @@ function addUnicodeSeries!(
return UnicodePlots.surfaceplot(x, y, Array(series[:z]); kw...) return UnicodePlots.surfaceplot(x, y, Array(series[:z]); kw...)
elseif st === :mesh3d elseif st === :mesh3d
return UnicodePlots.lineplot!( return UnicodePlots.lineplot!(
up, mesh3d_triangles(x, y, series[:z], series[:connections])... up,
mesh3d_triangles(x, y, series[:z], series[:connections])...,
) )
end end