# 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:8] # 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