Line segments using gnuplot

Solution 1:

You can simply do

dataf = 'yourfilename.dat'
plot dataf using 1:2:($3-$1):($4-$2) with vectors nohead

without changing your original data file.