From 62d69da7f1757bfd025ca806fa5256bab9258093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Tue, 22 May 2012 10:21:56 +0200 Subject: Add plot scripts in statserver. --- statserver/build.sh | 8 ++++++++ statserver/experiment1.plot | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 statserver/build.sh create mode 100644 statserver/experiment1.plot 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 -- cgit v1.2.3