Plotting vector field

I you don’t need to use Plots.jl, this can be easily reproduced with Gaston:

using Gaston
meshgrid(x, y) = (repeat(x, outer=length(y)), repeat(y, inner=length(x)))
x, y = meshgrid(0.0:0.2:2.0, 0.0:0.2:2.0)
u = 0.15 * cos.(x) .* y
v = 0.15 * sin.(x) .* y
plot(x, y, supp = [u v], w = :vectors)

image

4 Likes