aboutsummaryrefslogtreecommitdiffstats
path: root/bin/problem-creation-graph
diff options
context:
space:
mode:
authorfrancis <francis>2008-04-11 11:03:13 +0000
committerfrancis <francis>2008-04-11 11:03:13 +0000
commit2a199b59acce1237ca1f9e06333c18430194c8ba (patch)
tree9a10d7e84a236f226e884fd64202621f7f01ebf8 /bin/problem-creation-graph
parent878b2dbfe7b36928bcbb995049ec1c45972c4d12 (diff)
Fix problem-creation-graph
Diffstat (limited to 'bin/problem-creation-graph')
-rwxr-xr-xbin/problem-creation-graph22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/problem-creation-graph b/bin/problem-creation-graph
index a62de24f7..668ab81d9 100755
--- a/bin/problem-creation-graph
+++ b/bin/problem-creation-graph
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: problem-creation-graph,v 1.1 2008-04-11 11:00:17 francis Exp $
+# $Id: problem-creation-graph,v 1.2 2008-04-11 11:03:13 francis Exp $
GPLOT_OUTPUT="set terminal png font 'Vera.ttf' 9 size 1200,400"
EXTENSION=".png"
@@ -41,17 +41,17 @@ function grab_data {
# rather nastily, work out the cumulative heights in reverse, so can plot impulses on top of each other
grab_data "" $SOURCEA
-grab_data "where status not in ('unconfirmed')" $SOURCEB
-grab_data "where status not in ('unconfirmed', 'confirmed')" $SOURCEC
-grab_data "where status not in ('unconfirmed', 'confirmed', 'fixed')" $SOURCED
-grab_data "where status not in ('unconfirmed', 'confirmed', 'fixed', 'hidden')" $SOURCEE
+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 = 'flickr'
+#state = 'unconfirmed'
+#or state = 'confirmed'
+#or state = 'fixed'
+#or state = 'hidden'
+#or state = 'flickr'
cat >$GPSCRIPT <<END
@@ -88,6 +88,6 @@ END
#echo "gpscript $GPSCRIPT"
export GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera
-gnuplot < $GPSCRIPT > pet/web-admin/bci-live-creation$EXTENSION
+gnuplot < $GPSCRIPT > bci/web/bci-live-creation$EXTENSION