aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/help_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/help_controller.rb')
0 files changed, 0 insertions, 0 deletions
cumulative heights in reverse, so can plot impulses on top of each other grab_data "" $SOURCEA grab_data "where state not in ('unconfirmed')" $SOURCEB grab_data "where state not in ('unconfirmed', 'confirmed')" $SOURCEC grab_data "where state not in ('unconfirmed', 'confirmed', 'fixed')" $SOURCED grab_data "where state not in ('unconfirmed', 'confirmed', 'fixed', 'hidden')" $SOURCEE #state = 'unconfirmed' #or state = 'confirmed' #or state = 'fixed' #or state = 'hidden' #or state = 'partial' cat >$GPSCRIPT <<END unset border unset arrow set key left set tics out $GPLOT_OUTPUT set xdata time set timefmt "%Y-%m-%d" set xrange ["$DATE":] set format x "%d %b %Y" set xtics nomirror set xlabel "status of problems that were created on each calendar day" set ytics nomirror set ylabel "number of problems created on the calendar day" set y2tics tc lt 2 set y2label "cumulative total number of problems" tc lt 2 set format y2 "%.0f" # set arrow 1 from '2005-02-14', 0 to '2005-02-14', 900 lt 0 nohead # set label 1 'launch of beta' at '2005-02-17', 900 n = 0 END echo -n >>$GPSCRIPT " plot \"$SOURCEA\" using 1:2 with impulses lt 3 lw 15 title \"unconfirmed\"," if [ -s $SOURCEB ]; then echo -n >>$GPSCRIPT " \"$SOURCEB\" using 1:2 with impulses lt 4 lw 15 title \"confirmed\"," fi if [ -s $SOURCEC ]; then echo -n >>$GPSCRIPT " \"$SOURCEC\" using 1:2 with impulses lt 5 lw 15 title \"fixed\"," fi if [ -s $SOURCED ]; then echo -n >>$GPSCRIPT " \"$SOURCED\" using 1:2 with impulses lt 6 lw 15 title \"hidden\"," fi if [ -s $SOURCEE ]; then echo -n >>$GPSCRIPT " \"$SOURCEE\" using 1:2 with impulses lt 7 lw 15 title \"partial (and any other types)\"," fi cat >>$GPSCRIPT <<END "< awk 'BEGIN { n = 0 } { n += \$2; print \$1, \$2, n; }' $SOURCEA" using 1:3 axes x1y2 with lines lt 2 title "cumulative total number of problems" END #echo "gpscript $GPSCRIPT" export GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot < $GPSCRIPT > fixmystreet/web/bci-live-creation$EXTENSION