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,
:linestyle,
:markershape,
:quiver,
:arrow,
:seriesalpha,
:seriescolor,
:scale,

View File

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