]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/gw-filter.sh
lib: Add echo_plot() to make plotting of multiple graphs easier
[can-benchmark.git] / gw-tests / gw-filter.sh
index bebdc3f260e44be2f067d3d6ff0eff9317c50d5f..757f328107ef1436c048f31fcb8e6711a08b07a1 100755 (executable)
@@ -22,11 +22,9 @@ plot [0:1500] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
-       (( i != 0)) && echo ", \\"
-       echo -n "    " \"hist-$i.dat\" with lp lt $lt title \"Message id $i\"
+       echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\""
         lt=$((lt+1))
     done
-    echo
 }
     
 test_end