summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-05-22 10:21:56 +0200
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-05-22 10:21:56 +0200
commit62d69da7f1757bfd025ca806fa5256bab9258093 (patch)
tree5efcb96d9f5503e651ff718a9eb0f4e104c6380b
parentafcc17b389eb0d9796e0b108a80b9d2bf75acf43 (diff)
Add plot scripts in statserver.
-rwxr-xr-xstatserver/build.sh8
-rw-r--r--statserver/experiment1.plot45
2 files changed, 53 insertions, 0 deletions
diff --git a/statserver/build.sh b/statserver/build.sh
new file mode 100755
index 0000000..8c8b536
--- /dev/null
+++ b/statserver/build.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+for f in *.plot; do
+ gnuplot "$f";
+done
+
+cp *.pdf ../report/figures/plots
+
diff --git a/statserver/experiment1.plot b/statserver/experiment1.plot
new file mode 100644
index 0000000..ff26b5a
--- /dev/null
+++ b/statserver/experiment1.plot
@@ -0,0 +1,45 @@
+# Note you need gnuplot 4.4 for the pdfcairo terminal.
+set terminal pdfcairo font "Gill Sans,9" linewidth 4 rounded
+
+# Line style for axes
+set style line 80 lt rgb "#808080"
+
+# Line style for grid
+set style line 81 lt 0 # dashed
+set style line 81 lt rgb "#808080" # grey
+
+set grid back linestyle 81
+set border 3 back linestyle 80 # Remove border on top and right. These
+ # borders are useless and make it harder
+ # to see plotted lines near the border.
+ # Also, put it in grey; no need for so much emphasis on a border.
+set xtics nomirror
+set ytics nomirror
+
+#set log x
+#set mxtics 10 # Makes logscale look good.
+
+# Line styles: try to pick pleasing colors, rather
+# than strictly primary colors or hard-to-see colors
+# like gnuplot's default yellow. Make the lines thick
+# so they're easy to see in small plots in papers.
+set style line 1 lt rgb "#3c4445" lw 2 pt 1
+set style line 2 lt rgb "#00A000" lw 2 pt 6
+set style line 3 lt rgb "#5060D0" lw 2 pt 2
+set style line 4 lt rgb "#F25900" lw 2 pt 9
+
+set output "experiment1.pdf"
+set xlabel "Number of devices"
+set ylabel "Latency (ms)"
+
+set key bottom right
+
+set xrange [0:4]
+# set yrange [0:1]
+set xtics 1
+
+# plot "template.dat" \
+# index 0 title "Example line" w lp ls 1, \
+# "" index 1 title "Another example" w lp ls 2
+
+plot "experiment1.data" title "Update latency" w errorbars ls 1