Forgot to delete a line in the commands gnuplot, now fixed.
min=$(head -n 1 len2-msgs.txt | awk '{ print $2 }')
cat <<EOF
set title "Single GW rule for all messages, no modifications, high (soft)irq task priority"
-set logscale y
set grid xtics ytics mytics lw 1, lw 0.5
set key left
set xlabel "Experiment time [s]"
fi
cat <<EOF
set title "Single GW rule for all messages, no modifications, high (soft)irq task priority"
-set logscale xy
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "GW latency [ms]"
set ylabel "Latency profile [frames]"