]> rtime.felk.cvut.cz Git - lisovros/canprio_benchmark.git/blobdiff - samq_plot.txt
Try put more information to the graph
[lisovros/canprio_benchmark.git] / samq_plot.txt
index f0f66d5e92b96560f7d1ac0f7d6e163e051d5222..6aeba4f7275c1b6bcf85afdfc4e538bdaf0cc180 100644 (file)
@@ -1,14 +1,15 @@
-set terminal postscript color eps enhanced size 8cm,4cm lw 1 "Times-Roman" 10
+set terminal pdfcairo enhanced size 8cm,4cm lw 1 font "Times-Roman,4pt"
+set output 'plot.pdf'
 #set log y
-#set xrange [ 1 : 5000 ]
-#set yrange [ 0.25 : 1000 ]
 set style data histogram
-set style histogram cluster gap 1
 set style fill solid border -1
 set boxwidth 0.9
+set grid
+set key left reverse Left
 
 set xlabel "Different configurations of qdiscs and cangen"
-set ylabel "Time spent in can\\_send() function [us]"
+set ylabel "Time spent in can\\_send() function [{/Symbol m}s]"
+# set y2label "Time spent in can\\_send() function [{/Symbol m}s]"
 
 set style line 1 linetype 1 linecolor rgb "black"    linewidth 1 pointtype 1 
 set style line 2 linetype 1 linecolor rgb "yellow"   linewidth 1 pointtype 1
@@ -18,11 +19,16 @@ set style line 5 linetype 1 linecolor rgb "green"    linewidth 1 pointtype 1
 set style line 6 linetype 1 linecolor rgb "cyan"     linewidth 1 pointtype 1
 set style line 7 linetype 1 linecolor rgb "violet"   linewidth 1 pointtype 1
 
-set style histogram clustered
+set style histogram errorbars gap 1 lw 2
+set bars fullwidth
+
+set yrange [0:200]
+# set y2range [0:30]
+# set y2tics
 
 plot \
-       "test2_plot.dat" using 2:xticlabels(1) ls 1 title "P4 PC; g = 0", \
-       "test1_plot.dat" using 2:xticlabels(1) ls 2 title "P4 PC; g = 1", \
-       "test3_plot.dat" using 2:xticlabels(1) ls 3 title "MPC5200 PPC; g = 0", \
-       "test4_plot.dat" using 2:xticlabels(1) ls 4 title "MPC5200 PPC; g = 1", \
-       "test5_plot.dat" using 2:xticlabels(1) ls 5 title "MPC5200 PPC; g = 2";
+       "test2_plot.dat" using 2:4:6 :xticlabels(1) ls 1 axes x1y1 title "P4; 0 ms", \
+       "test1_plot.dat" using 2:4:6:xticlabels(1) ls 2 axes x1y1 title "P4; 1 ms", \
+       "test3_plot.dat" using 2:4:6:xticlabels(1) ls 3 axes x1y1 title "MPC5200; 0 ms", \
+       "test4_plot.dat" using 2:4:6:xticlabels(1) ls 4 axes x1y1 title "MPC5200; 1 ms", \
+       "test5_plot.dat" using 2:4:6:xticlabels(1) ls 5 axes x1y1 title "MPC5200; 2 ms";