]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - recvmmsg/plot.gp
Add remaining uncommitted files
[can-benchmark.git] / recvmmsg / plot.gp
index 3e0f6dd0bca61f4360100c9893add98c9409be38..19e18b4124d951a7fecbdeb7c66aa789e6241804 100644 (file)
@@ -1,16 +1,22 @@
+# termsize 7cm,7cm
 set grid
 
 set grid
 
-set xlabel "Number of messages"
-set ylabel "Time [{/Symbol m}s]"
+set xlabel "Frames [×1000]"
+set ylabel "Time [ms]"
 set key left reverse Left
 
 fit a1*x+b1 "data" using 1:2 via a1, b1
 fit a2*x+b2 "data" using 1:4 via a2, b2
 
 set key left reverse Left
 
 fit a1*x+b1 "data" using 1:2 via a1, b1
 fit a2*x+b2 "data" using 1:4 via a2, b2
 
-plot 'data' using 1:2 pt 7 ps 0.2 title 'read()', \
-     'data' using 1:4 pt 7 ps 0.2 title 'recvmmsg()', \
-     a1*x+b1 with lines lt 1 lc 1 lw 1 title "Linear fit for read()", \
-     a2*x+b2 with lines lt 1 lc 2 lw 1 title "Linear fit for recvmmsg()"
+set yrange [0:]
+
+b1=b1/1000
+b2=b2/1000
+
+plot 'data' using ($1/1000):($2/1000) title 'read()', \
+     'data' using ($1/1000):($4/1000) title 'recvmmsg()', \
+     a1*x+b1 with lines lt 1 lc rgbcolor "#aa0000" lw 5 title "", \
+     a2*x+b2 with lines lt 1 lc rgbcolor "#00aa00" lw 5 title ""
 
 # a1*x+b1 - a2*x-b2 = 0
 # (a1-a2)*x = b2-b1
 
 # a1*x+b1 - a2*x-b2 = 0
 # (a1-a2)*x = b2-b1