diff --git a/plot/tasktime b/plot/tasktime index 89890ff..df87e4c 100644 --- a/plot/tasktime +++ b/plot/tasktime @@ -1,8 +1,9 @@ -set terminal png -set bars 4.0 +set terminal png size 1024,768 +set key above horizontal autotitle columnheader +set bars 5.0 set xlabel "Date" set ylabel "Man Hours" set grid y -set tics scale 0.0 +set xtics rotate by -45 plot "tasktime.dat" using 1:3:4:3:4:xtic(2) title 'Time Interval' with candlesticks, \ "tasktime.dat" using 1:5 title 'Mean' with lines diff --git a/tools/gentasktime b/tools/gentasktime index e1e2258..dbc033d 100755 --- a/tools/gentasktime +++ b/tools/gentasktime @@ -17,7 +17,7 @@ domake \ && head -n1 taskstats.dat \ && \ ( - gendate && tail -n1 taskstats.dat \ + echo -n '0 ' && gendate && tail -n1 taskstats.dat \ && git log --first-parent --no-merges --pretty=format:'%ar %h' \ | awk ' BEGIN { @@ -34,10 +34,9 @@ domake \ | while read n h; do git checkout "$h" >&2 \ && domake \ + && echo -n "-$n " \ && gendate \ && tail -n1 taskstats.dat \ || exit 1 done - ) \ - | tac \ - | awk 'BEGIN{i=0}{i++; printf "%d ", i; print}' + )