And I want the same plot in Julia. I’ve seen streamplot from GLMakie, but arguments are limits and a function. How to do ?
I have this code but it’s useless because I don’t use XX, YY, U and V
Those matrices are a sample of my code to test with Julia without reload my code and to share only essential.
The problem with arrows is, that’s not continuous. Or in all case, I don’t know how to do
using GMT
X = range(0, stop = 1, length = 3)
Y = range(0, stop = 1, length = 3)
XX, YY = GMT.meshgrid(X, Y) # We must to convert, it's the same XX and YY than before
u = [-0.0 -0.0 0.0; -0.0 -0.6 0.0; -0.0 0.0 0.0]
v = [1.0 1.0 1.0; 1.0 0.8 1.0; 1.0 1.0 1.0]
U = mat2grid(u, XX[1, :], YY[:, 1])
V = mat2grid(v, XX[1, :], YY[:, 1])
startx = linspace(0,1,50);
starty = zeros(length(startx));
p = streamlines(U, V, startx, starty)
plot(p, show = true)