plot-all

来自「Contiki是一个开源」· 代码 · 共 242 行

TXT
242
字号
set terminal postscript eps color font "Helvetica" 10set xlabel "Time"set xdata timeset timefmt "%s"#set datafile separator " "#set boxwidth 0.15#set style fill pattern 1set style data linesset key top left Left #width -3set output "plot-rssi.eps"set ylabel "Radio noise level"plot [:] [0:] \'data' using 1:9 notitle#set output "plot-energy.eps"#set ylabel "Energy (mJ)"#plot 'data' using 1:\#(3*(0.0545 * $13 + 1.8 * $14 + 20.0 * $15 + 17.7 * $16 + 4.6 * $17) / 4096) \#title "Red LED" with filledcurves x1, \#'data' using 1:\#(3*(0.0545 * $13 + 1.8 * $14 + 20.0 * $15 + 17.7 * $16) / 4096) \#title "Radio TX" with filledcurves x1, \#'data' using 1:\#(3*(0.0545 * $13 + 1.8 * $14 + 20.0 * $15) / 4096) \#title "Radio listen" with filledcurves x1, \#'data' using 1:\#(3*(0.0545 * $13 + 1.8 * $14) / 4096) \#title "CPU active" with filledcurves x1, \#'data' using 1:\#(3*(0.0545 * $13) / 4096) \#title "CPU LPM" with filledcurves x1set output "plot-power.eps"set ylabel "Power (mW)"plot 'power' using 1:\(3*(0.0545 * $2 + 1.8 * $3 + 20.0 * $4 + 17.7 * $5 + 4.6 * $6) / 4096) \title "Radio listen" with filledcurve x1, \'power' using 1:\(3*(0.0545 * $2 + 1.8 * $3 + 4.6 * $6 + 17.7 * $5) / 4096) \title "Radio TX" with filledcurve x1, \'power' using 1:\(3*(0.0545 * $2 + 1.8 * $3 + 4.6 * $6) / 4096) \title "Red LED" with filledcurve x1, \'power' using 1:\(3*(0.0545 * $2 + 1.8 * $3) / 4096) \title "CPU active" with filledcurve x1, \'power' using 1:\(3*(0.0545 * $2) / 4096) \title "CPU LPM" with filledcurve x1#set output "plot-temperature.eps"#set ylabel "Temperature\n(degrees Celcius)"#plot [:] [-10:30] \#'data' using 1:(-39.60 + 0.01*$7) title "Temperature"#set output "plot-humidity.eps"#set ylabel "Humidity"#plot [:] [0:100] \#'data' using 1:(-4 + 0.0405*$8 - 2.8e-6*($8*$8)) title "Humidity"set output "plot-sensors.eps"set multiplotset size 1, 0.25set origin 0, 0.75unset xlabelset ylabel "Light sensor 1"plot [:] [0:] \'data' using ($1 - $36/4096):(0.625 * 1000000 * 0.5 * $5/4096 / 100000 * 1000) notitleset origin 0, 0.5set ylabel "Light sensor 2"plot [:] [0:] \'data' using ($1 - $36/4096):(0.769 * 100000 * 2.5 * $6/4096 / 100000 * 1000) notitleset origin 0, 0.25set ylabel "Temperature (degrees C)"plot [:] [0:] \'data' using ($1 - $36/4096):(-39.60 + 0.01*$7) notitleset origin 0, 0.set ylabel "Relative humidity"set xlabel "Time"plot [:] [0:100] \'data' using ($1 - $36/4096):(-4 + 0.0405*$8 - 2.8e-6*($8*$8)) notitleunset multiplotset size 1,1set origin 0,0#set output "plot-light.eps"#set ylabel "Light"#plot [:] [0:] \#'data' using 1:(0.625 * 1000000 * 0.5 * $5/4096 / 100000 * 1000) title "Light 1", \#'data' using 1:(0.769 * 100000 * 2.5 * $6/4096 / 100000 * 1000) title "Light 2"set output "plot-ll-errors.eps"set multiplotset size 1, 0.17set origin 0, 0.0set ylabel "contentiondrop"plot [:] [0:] \'data' using 1:($31) with steps notitleset origin 0, 0.17set ylabel "sendingdrop"unset xlabelplot [:] [0:] \'data' using 1:($32) with steps notitleset origin 0, 0.34set ylabel "toolong"plot [:] [0:] \'data' using 1:($27) with steps notitleset origin 0, 0.50set ylabel "tooshort"plot [:] [0:] \'data' using 1:($28) with steps notitleset origin 0, 0.67set ylabel "badsynch"plot [:] [0:] \'data' using 1:($29) with steps notitleset origin 0, 0.84set ylabel "badcrc"plot [:] [0:] \'data' using 1:($30) with steps notitleunset multiplotset size 1,1set origin 0,0set xlabel "Time"set output "plot-parent.eps"set ylabel "Node ID"plot [:] [0:100] \'data' using 1:10 title "Best parent" with pointsset output "plot-rtmetric.eps"set multiplotunset xlabelset size 1, 0.2set origin 0, 0.8set ylabel "Routing metric"plot [:] [0:8] \'data' using 1:(($11 + $12) / 16) notitle with stepsset origin 0, 0.2set ylabel "ETX to\nbest neighbor"plot [:] [0:8] \'data' using 1:(($11) / 16) notitle  with stepsset ylabel "Rtmetric for\nbest neighbor"set origin 0, 0.4plot [:] [0:8] \'data' using 1:(($12) / 16) notitle with stepsset ylabel "Lost packet"set origin 0, 0.0set xlabel "Time"plot [:] [0:1] \'lost' using 1:($2 * 0.5) notitle with pointsset ylabel "Hops"unset xlabelset origin 0, 0.6plot [:] [0:8] \'data' using 1:4 notitle with stepsunset multiplotset size 1,1set origin 0,0set xlabel "Time"set output "plot-rtx-stats.eps"set multiplotunset xlabelset size 1, 0.17set origin 0, 0.84set ylabel "reliabletx"plot [:] [0:] \'data' using 1:($20) notitleset origin 0, 0.67set ylabel "reliablerx"plot [:] [0:] \'data' using 1:($21) notitleset origin 0, 0.50set ylabel "rexmit"plot [:] [0:] \'data' using 1:($22) notitleset origin 0, 0.34set ylabel "acktx"plot [:] [0:] \'data' using 1:($23) notitleset origin 0, 0.17set ylabel "timedout"plot [:] [0:] \'data' using 1:($25) notitleset origin 0, 0.0set xlabel "Time"set ylabel "badackrx"plot [:] [0:] \'data' using 1:($26) notitleunset multiplotset size 1,1set origin 0,0set xlabel "Time"set output "plot-tx-stats.eps"set multiplotunset xlabelset size 1, 0.25set origin 0, 0.75set ylabel "tx"plot [:] [0:] \'data' using 1:($18) notitleset origin 0, 0.50set ylabel "reliabletx"plot [:] [0:] \'data' using 1:($20) notitleset origin 0, 0.25set ylabel "rx"plot [:] [0:] \'data' using 1:($19) notitleset origin 0, 0.0set xlabel "Time"set ylabel "reliablerx"plot [:] [0:] \'data' using 1:($21) notitleunset multiplotset size 1,1set origin 0,0set xlabel "Time"set output "plot-seqno.eps"set ylabel "Sequence number"plot [:] [0:256] \'data' using 1:3 title "Sequence number" with steps, \'lost' using 1:($2 * 128) title "Lost" with points, \'dup' using 1:($2 * 64) title "Duplicate" with points, \'parent' using 1:2 title "Best parent" with points#set output "plot-hops.eps"#set ylabel "Hops"#plot [:] [-1:5] \#'data' using 1:4 title "Hops" with stepsset output "plot-latency.eps"set ylabel "Latency (s)"plot [:] [:] \'data' using 1:($36 / 4096) title "Latency" with steps, \'data' using 1:($36 / ($4 * 4096)) title "Latency per hop" with steps

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?