From 4c676bfe792052ff8c5f8e1e61f9bfb6248d9527 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 26 Sep 2011 11:54:10 +0200 Subject: [PATCH] Fix line breaks in plot commands --- gw-tests/mod.sh | 10 +++++----- gw-tests/nop-canalyzer.sh | 16 ++++++++-------- gw-tests/nop-highprio-time.sh | 8 ++++---- gw-tests/nop-highprio.sh | 8 ++++---- gw-tests/nop-time.sh | 8 ++++---- gw-tests/nop.sh | 8 ++++---- gw-tests/pc.sh | 8 ++++---- gw-tests/user-time.sh | 8 ++++---- gw-tests/user.sh | 8 ++++---- 9 files changed, 41 insertions(+), 41 deletions(-) diff --git a/gw-tests/mod.sh b/gw-tests/mod.sh index a5b8679..7d372ae 100755 --- a/gw-tests/mod.sh +++ b/gw-tests/mod.sh @@ -56,11 +56,11 @@ plot_cmds() { set title "Single GW rule for all messages with modifications, 8 byte messages" set grid xtics mxtics ytics mytics lw 1, lw 0.5 set ylabel "Latency profile [messages]" -plot [$range] [1:$COUNT] \ - "nop-hist.txt" $using with lp lt 1 title "No modifications", \ - "mod-hist.txt" $using with lp lt 2 title "Two modifications", \ - "mod2-hist.txt" $using with lp lt 3 title "Four modifications", \ - "modcsxor-hist.txt" $using with lp lt 4 title "Four modifications and XOR checksum",\ +plot [$range] [1:$COUNT] \\ + "nop-hist.txt" $using with lp lt 1 title "No modifications", \\ + "mod-hist.txt" $using with lp lt 2 title "Two modifications", \\ + "mod2-hist.txt" $using with lp lt 3 title "Four modifications", \\ + "modcsxor-hist.txt" $using with lp lt 4 title "Four modifications and XOR checksum",\\ "modcscrc8-hist.txt" $using with lp lt 5 title "Four modifications and CRC8 checksum" EOF } diff --git a/gw-tests/nop-canalyzer.sh b/gw-tests/nop-canalyzer.sh index 4028cf2..045c83d 100755 --- a/gw-tests/nop-canalyzer.sh +++ b/gw-tests/nop-canalyzer.sh @@ -37,14 +37,14 @@ set termoption dashed set grid xtics mxtics ytics mytics lw 1, lw 0.5 set xlabel "Time [ms]" set ylabel "Latency profile [messages]" -plot [$range] [1:$COUNT] \ - "len2-hist.txt" with lp lc 1 lt 1 title "PC: 2 byte messages", \ - "len4-hist.txt" with lp lc 2 lt 1 title "PC: 4 byte messages", \ - "len6-hist.txt" with lp lc 3 lt 1 title "PC: 6 byte messages", \ - "len8-hist.txt" with lp lc 4 lt 1 title "PC: 8 byte messages", \ - "canalyzer-2-hist.txt" with lp lc 1 lt 2 title "CANalyzer: 2 byte messages", \ - "canalyzer-4-hist.txt" with lp lc 2 lt 2 title "CANalyzer: 4 byte messages", \ - "canalyzer-6-hist.txt" with lp lc 3 lt 2 title "CANalyzer: 6 byte messages", \ +plot [$range] [1:$COUNT] \\ + "len2-hist.txt" with lp lc 1 lt 1 title "PC: 2 byte messages", \\ + "len4-hist.txt" with lp lc 2 lt 1 title "PC: 4 byte messages", \\ + "len6-hist.txt" with lp lc 3 lt 1 title "PC: 6 byte messages", \\ + "len8-hist.txt" with lp lc 4 lt 1 title "PC: 8 byte messages", \\ + "canalyzer-2-hist.txt" with lp lc 1 lt 2 title "CANalyzer: 2 byte messages", \\ + "canalyzer-4-hist.txt" with lp lc 2 lt 2 title "CANalyzer: 4 byte messages", \\ + "canalyzer-6-hist.txt" with lp lc 3 lt 2 title "CANalyzer: 6 byte messages", \\ "canalyzer-8-hist.txt" with lp lc 4 lt 2 title "CANalyzer: 8 byte messages" EOF } diff --git a/gw-tests/nop-highprio-time.sh b/gw-tests/nop-highprio-time.sh index 80705a7..b8c00fe 100755 --- a/gw-tests/nop-highprio-time.sh +++ b/gw-tests/nop-highprio-time.sh @@ -15,10 +15,10 @@ set grid xtics ytics mytics lw 1, lw 0.5 set key left set xlabel "Experiment time [s]" set ylabel "Latency [ms]" -plot [:] [0.01:4] \ - "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \ - "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \ - "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \ +plot [:] [0.01:4] \\ + "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \\ + "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \\ + "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \\ "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages" EOF } diff --git a/gw-tests/nop-highprio.sh b/gw-tests/nop-highprio.sh index 13de911..a13e003 100755 --- a/gw-tests/nop-highprio.sh +++ b/gw-tests/nop-highprio.sh @@ -29,10 +29,10 @@ set logscale xy set grid xtics mxtics ytics mytics lw 1, lw 0.5 set xlabel "Time [ms]" set ylabel "Latency profile [messages]" -plot [0.01:100] [1:$COUNT] \ - "len2-hist.txt" with lp lt 1 title "2 byte messages", \ - "len4-hist.txt" with lp lt 2 title "4 byte messages", \ - "len6-hist.txt" with lp lt 3 title "6 byte messages", \ +plot [0.01:100] [1:$COUNT] \\ + "len2-hist.txt" with lp lt 1 title "2 byte messages", \\ + "len4-hist.txt" with lp lt 2 title "4 byte messages", \\ + "len6-hist.txt" with lp lt 3 title "6 byte messages", \\ "len8-hist.txt" with lp lt 4 title "8 byte messages" EOF } diff --git a/gw-tests/nop-time.sh b/gw-tests/nop-time.sh index 36305cb..7bf1592 100755 --- a/gw-tests/nop-time.sh +++ b/gw-tests/nop-time.sh @@ -22,10 +22,10 @@ set grid xtics ytics mytics lw 1, lw 0.5 set key left set xlabel "Experiment time [s]" set ylabel "Latency [ms]" -plot [:] [$range] \ - "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \ - "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \ - "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \ +plot [:] [$range] \\ + "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \\ + "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \\ + "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \\ "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages" EOF } diff --git a/gw-tests/nop.sh b/gw-tests/nop.sh index b0fb501..5e4bfc1 100755 --- a/gw-tests/nop.sh +++ b/gw-tests/nop.sh @@ -25,10 +25,10 @@ set title "Single GW rule for all messages, 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] \ - "len2-hist.txt" with lp lt 1 title "2 byte messages", \ - "len4-hist.txt" with lp lt 2 title "4 byte messages", \ - "len6-hist.txt" with lp lt 3 title "6 byte messages", \ +plot [$range] [1:$COUNT] \\ + "len2-hist.txt" with lp lt 1 title "2 byte messages", \\ + "len4-hist.txt" with lp lt 2 title "4 byte messages", \\ + "len6-hist.txt" with lp lt 3 title "6 byte messages", \\ "len8-hist.txt" with lp lt 4 title "8 byte messages" EOF } diff --git a/gw-tests/pc.sh b/gw-tests/pc.sh index e022f1d..9d20d3b 100755 --- a/gw-tests/pc.sh +++ b/gw-tests/pc.sh @@ -19,10 +19,10 @@ set logscale y set grid set xlabel "Time [ms]" set ylabel "Latency profile [messages]" -plot [0.01:$max] [1:$COUNT] \ - "len2-hist.txt" with lp lt 1 title "2 byte messages", \ - "len4-hist.txt" with lp lt 2 title "4 byte messages", \ - "len6-hist.txt" with lp lt 3 title "6 byte messages", \ +plot [0.01:$max] [1:$COUNT] \\ + "len2-hist.txt" with lp lt 1 title "2 byte messages", \\ + "len4-hist.txt" with lp lt 2 title "4 byte messages", \\ + "len6-hist.txt" with lp lt 3 title "6 byte messages", \\ "len8-hist.txt" with lp lt 4 title "8 byte messages" EOF } diff --git a/gw-tests/user-time.sh b/gw-tests/user-time.sh index a6221ec..a4a518e 100755 --- a/gw-tests/user-time.sh +++ b/gw-tests/user-time.sh @@ -27,10 +27,10 @@ set title "Single GW rule for all messages, no modifications" set grid xtics ytics mytics lw 1, lw 0.5 set xlabel "Experiment time [s]" set ylabel "Latency [ms]" -plot [:] [$range] \ - "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \ - "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \ - "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \ +plot [:] [$range] \\ + "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \\ + "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \\ + "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \\ "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages" EOF } diff --git a/gw-tests/user.sh b/gw-tests/user.sh index 9687c4b..554329f 100755 --- a/gw-tests/user.sh +++ b/gw-tests/user.sh @@ -31,10 +31,10 @@ set termoption dashed 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", \ +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" EOF } -- 2.39.2