diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 22:02:59 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 22:02:59 +0100 |
commit | fbc4c10400f3dedb7a221df6d271e40d1bb89268 (patch) | |
tree | c04662d52dea441b007699b00e2cd2c7e2dfacbb | |
parent | 435b612c46dcb73ab55659f89f85f3d6bc5aa869 (diff) |
Minor fixes to the plots.
-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 |