time | std stick | srt stick | lng stick | banjo | loops | lazy-j | stable | j | jump-scrape |
<2018-02-01 Fri> | 20 | 15 | 10 | 3 | 2 | 0 | 0 | ? | ? |
<2018-03-01 Fri> | 24 | 16 | 11 | 1 | 2 | 0 | 0 | ? | ? |
<2018-04-01 Fri> | 25 | 18 | 27 | 2 | 2 | 0 | 0 | ? | ? |
<2018-05-01 Fri> | 40 | 49 | 31 | 37 | 5 | 6 | 8 | ? | ? |
<2018-05-07 Fri> | 33 | 60 | 34 | 30 | 4 | 7 | 11 | ? | ? |
<2018-06-08> | 40 | 66 | 33 | 29 | 5 | 9 | 18 | ? | ? |
<2018-06-12> | 38 | 50 | 25 | 40 | 10 | 4 | 13 | ? | ? |
<2018-06-13 Wed> | 34 | 60 | 29 | 36 | 4 | 13 | 18 | ? | ? |
<2018-06-20 Wed> | 34 | 57 | 32 | 40 | 2 | 10 | 17 | ? | ? |
<2018-08-13 Mon> | 33 | 54 | 30 | 34 | 2 | 3 | 12 | ? | 6 |
<2018-08-23 Thu> | 31 | 61 | 28 | 34 | 9 | ? | ? | 1 | ? |
reset
# org-babel passes gnuplot a payload that's tab separated.
set key left top # This puts the legend in the top left.
set datafile separator "\t"
set xdata time
set xlabel "time"
set ylabel "reps"
set yrange [0:100]
# This is the format that org-babel sends to gnuplot.
set timefmt "%Y-%m-%d-%H:%M:%S"
set xrange ["2018-02-01-00:00:00":]
set format x '%Y-%m-%d'
set xtics format "%b %d"
# 564 is the magical width of 80 columns at the present font settings.
set term png size 564, 400
# Don't use this method of ignoring data - see notes below instead.
# set datafile missing "?"
# Defer to bc, a precision calculator for Linux.
# Check for ? which is my arbitarily chosen "missing value" for gnuplot.
# Normally we would use 'set datafile missing "?"' but I think since it's being
# passed to bc, the normal ignore missing data behavior doesn't work.
result(s) = s eq "?" ? NaN : system(sprintf('echo "%s" | bc -l', s)) + 0
plot data u 1:(result(strcol(2))) w linespoints title 'std sticks', \
data u 1:(result(strcol(3))) w linespoints title 'short sticks', \
data u 1:(result(strcol(4))) w linespoints title 'long sticks', \
data u 1:(result(strcol(5))) w linespoints title 'banjo sticks', \
data u 1:(result(strcol(6))) w linespoints title 'loops', \
data u 1:(result(strcol(7))) w linespoints title "lazy j's", \
data u 1:(result(strcol(8))) w linespoints title 'rapid stablize', \
data u 1:(result(strcol(9))) w linespoints title "diving j's", \
data u 1:(result(strcol(10))) w linespoints title 'jump scrapes'