diff options
-rwxr-xr-x | plot.sh | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -40,18 +40,19 @@ function gnuplot_conf { echo "'' using 1:9 title 'Peak player count'" elif [ "$SELECT" == "ping" ]; then echo "set title \"Mean ping over time\n$TS\"" - echo "set ylabel 'Mean ping'" - echo -n "plot '$DATA' using 1:3 axes x1y1 title 'Mean ping'" + echo "set key off" + echo "set ylabel \"Mean ping [ms]\"" + echo -n "plot '$DATA' using 1:3 axes x1y1" elif [ "$SELECT" == "ping-distrib" ]; then echo "set title \"Ping distribution over time\n$TS\"" echo "set ylabel 'Fraction of players'" echo "set yrange [0:1]" echo -n "plot '$DATA'" - echo -n "using 1:4 title 'Above 60', " - echo -n "'' using 1:5 title 'Above 110', " - echo -n "'' using 1:6 title 'Above 160', " - echo -n "'' using 1:7 title 'Above 210', " - echo "'' using 1:8 title 'Above 260'" + echo -n "using 1:4 title 'Above 60ms', " + echo -n "'' using 1:5 title 'Above 110ms', " + echo -n "'' using 1:6 title 'Above 160ms', " + echo -n "'' using 1:7 title 'Above 210ms', " + echo "'' using 1:8 title 'Above 260ms'" else echo "SELECT is wrong" 1>&2 fi |