a basic quiver plot

This commit is contained in:
Simon Christ 2019-11-11 18:51:54 +01:00
parent a0e0c2c950
commit a54ff8a670
2 changed files with 8 additions and 2 deletions

View File

@ -440,7 +440,9 @@ const _pgfplots_attr = merge_with_base_supported([
:grid, :legend, :grid, :legend,
:colorbar, :colorbar_title, :colorbar, :colorbar_title,
:fill_z, :line_z, :marker_z, :levels, :fill_z, :line_z, :marker_z, :levels,
# :ribbon, :quiver, :arrow, # :ribbon,
:quiver,
:arrow,
# :orientation, # :orientation,
# :overwrite_figure, # :overwrite_figure,
:polar, :polar,

View File

@ -200,7 +200,11 @@ function pgf_series(sp::Subplot, series::Series)
PGFPlots.Contour PGFPlots.Contour
end end
push!(series_collection, func(args...; kw...)) push!(series_collection, func(args...; kw...))
elseif series[:arrow] isa Arrow
u, v = series[:quiver]
x = series[:x][2:4:end]
y = series[:y][2:4:end]
push!( series_collection, PGFPlots.Quiver(x,y,u,v, style="-stealth'") )
else else
# series segments # series segments
segments = iter_segments(series) segments = iter_segments(series)