]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt.sh
Convert plot commands to be returned by function p()
[can-benchmark.git] / tests / rtt.sh
index 757ff45815e5d0c4f9a89a796f64c29a347cf093..f79a06cd8bd4fcb28ba2cfa7b259308ded42fe49 100755 (executable)
@@ -10,19 +10,20 @@ t() {
 
 
 
-PLOT_CMD='
+p() { cat <<EOF
 set title "Round-trip time"
 set logscale y
 set grid
 set xlabel "Time [{/Symbol m}s]"
 set ylabel "Latency profile [messages]"
 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
-          "lincan-1000.dat" with lp title "Lincan"
-'
+              "lincan-1000.dat" with lp title "Lincan"
+EOF
+}
 
 PLOT_CMD[1]='
 set title "Round-trip time history"
-set logscale xy
+set logscale y
 set grid
 set xlabel "Ping number"
 set ylabel "Round-trip time [{/Symbol m}s]"