basic quiver support

This commit is contained in:
t-bltg 2022-01-12 01:42:35 +01:00
parent 3313780b4e
commit ada146fe4e
2 changed files with 3 additions and 2 deletions

View File

@ -923,6 +923,8 @@ const _unicodeplots_attr = merge_with_base_supported([
:linecolor, :linecolor,
:linestyle, :linestyle,
:markershape, :markershape,
:quiver,
:arrow,
:seriesalpha, :seriesalpha,
:seriescolor, :seriescolor,
:scale, :scale,

View File

@ -123,11 +123,10 @@ function addUnicodeSeries!(
return UnicodePlots.spy(series[:z].surf; kw...) return UnicodePlots.spy(series[:z].surf; kw...)
end end
series_kw = (;)
# now use the ! functions to add to the plot # now use the ! functions to add to the plot
if st in (:path, :straightline, :shape) if st in (:path, :straightline, :shape)
func = UnicodePlots.lineplot! func = UnicodePlots.lineplot!
series_kw = (; head_tail = series[:arrow] isa Arrow ? series[:arrow].side : nothing)
elseif st == :scatter || series[:markershape] != :none elseif st == :scatter || series[:markershape] != :none
func = UnicodePlots.scatterplot! func = UnicodePlots.scatterplot!
series_kw = (; marker = series[:markershape]) series_kw = (; marker = series[:markershape])