I want to create a streamline as arrow lines in Gnuplot, I already have the data I need, so I think that my problem is not the same as this post says and differs from this message , because I already received the data needed for stromal lines .
I did like this:
Thus, the red lines are vectors showing the flow field, and the green line are the flow lines to direct readers in the flow direction. And all the big blue arrows are my goal of being put on GNUPLOT. I know how to draw the middle arrows, as this post showed, but what code do I need if I want to draw more arrows along the lines?
To be more detailed, how can I build a drawing like this:
I provide the data file here:
speed.txt for vector stream field data as "index, X, Y, vx, vy, particle number"
line.txt for simplified data like "X, Y"
and the gnu file is bleow:
set terminal postscript eps size 108,16 enhanced font "Arial-Bold,100"
set output 'vector.eps'
unset key
set tics
set colorbox
set border 0
set xtics 2
set xrange [0:108]
set yrange [0:16]
set nolabel
set style line 4 lt 2 lc rgb "green" lw 2
plot 'velcoity.txt' u 2:3:(250*$4):(250*$5) with vectors lc 1,'line.txt' u 1:2 ls 4
Thanks!
source
share