]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-w.sh
Generate smaller PNGs
[can-benchmark.git] / tests / rtt-w.sh
index a91308b4f2f28f80201c0e89c4d26e993dc9dde0..5dcae1ad77fcf1116ff5d4bbaae01cc0f09a494e 100755 (executable)
@@ -12,16 +12,17 @@ t() {
 
 
 
-PLOT_CMD='
+p() { cat <<EOF
 set title "Round-trip time depending on delay between sends"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0",\
-          "lincan-0-1000.dat" with lp lt 2 title "Lincan 0",\
-          "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1",\
-          "lincan-1-1000.dat" with lp lt 2 title "Lincan 1",\
-          "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2",\
-          "lincan-2-1000.dat" with lp lt 2 title  "Lincan 2"
-'
+plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0sms",\
+          "lincan-0-1000.dat" with lp lt 2 title "Lincan 0 ms",\
+          "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1 ms",\
+          "lincan-1-1000.dat" with lp lt 2 title "Lincan 1 ms",\
+          "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2 ms",\
+          "lincan-2-1000.dat" with lp lt 2 title  "Lincan 2 ms"
+EOF
+}