Skip to content

Commit

Permalink
center quivers properly in watch_udp_com
Browse files Browse the repository at this point in the history
  • Loading branch information
imyxh committed Jun 11, 2024
1 parent 1591409 commit afa0a4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/watch_udp_com.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ for i in 1:10000
@assert 2*L*M == length(data1.data)
u = reshape(data1.data, (2,:))[1,:]
v = reshape(data1.data, (2,:))[2,:]
display(quiver!(8*(m.-0.5), 8*(l.-0.5), quiver=(4*v,4*u), color=:magenta))
display(quiver!(
8*(m.-0.5).+0.5, 8*(l.-0.5).+0.5, quiver=(4*v,4*u), color=:magenta
))
end

close(sock)
Expand Down

0 comments on commit afa0a4b

Please sign in to comment.