]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Make colors for user graph work for both pdf and png
authorMichal Sojka <sojka@os.inf.tu-dresden.de>
Mon, 26 Sep 2011 12:37:18 +0000 (14:37 +0200)
committerMichal Sojka <sojka@os.inf.tu-dresden.de>
Mon, 26 Sep 2011 12:37:18 +0000 (14:37 +0200)
gw-tests/user.sh

index 554329f21acbe4ea1d307528b361185c5cf9fdb5..c5cea0a98013db3b5b1afb9acdd51e80e1f6e367 100755 (executable)
@@ -26,16 +26,20 @@ plot_cmds() {
        echo "set logscale xy"
     fi
     cat <<EOF
        echo "set logscale xy"
     fi
     cat <<EOF
-set title "Kernel vs. userspace GW, no modifications"
 set termoption dashed
 set termoption dashed
+set style line 1 lt 1 lc 1 pt 1
+set style line 2 lt 2 lc 1 pt 1
+set style line 3 lt 1 lc 2 pt 2
+set style line 4 lt 2 lc 2 pt 2
+set title "Kernel vs. userspace GW, no modifications"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [$range] [1:$COUNT] \\
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 plot [$range] [1:$COUNT] \\
-          "user2-hist.txt" with lp lc 1 lt 1 title "Userspace GW, 2 byte messages", \\
-          "user8-hist.txt" with lp lc 1 lt 2 title "Userspace GW, 8 byte messages", \\
-          "kern2-hist.txt" with lp lc 2 lt 1 title "Kernel GW, 2 byte messages", \\
-          "kern8-hist.txt" with lp lc 2 lt 2 title "Kernel GW, 8 byte messages"
+          "user2-hist.txt" with lp ls 1 title "Userspace GW, 2 byte messages", \\
+          "user8-hist.txt" with lp ls 2 title "Userspace GW, 8 byte messages", \\
+          "kern2-hist.txt" with lp ls 3 title "Kernel GW, 2 byte messages", \\
+          "kern8-hist.txt" with lp ls 4 title "Kernel GW, 8 byte messages"
 EOF
 }
     
 EOF
 }