File talk:Google News stories mentioning Wikipedia.png

The code

 * 1) !/bin/sh

TITLE="Google News stories mentioning Wikipedia" FILE=`echo "$TITLE" | sed 's/\ /_/g'`.png



TMP="_gpdata_$$" trap "/bin/rm -f ${TMP} ; exit" 0

sed    's/^[   ]*// s/,/ /g s/Jan /January / s/Feb /February / s/Mar /March / s/Apr /April / s/Jun /June / s/Jul /July / s/Aug /August / s/Sep /September / s/Oct /October / s/Nov /November / s/Dec /December / s/[    ][       ]*/ /g /^[    ]*$/d' "${1:-googlenews.dat}"  > ${TMP}

gnuplot <<_EOF_ || exit 1

set size .67,.5 set pointsize .5

set title "${TITLE}" set xlabel " " set ylabel "Stories" set grid ytics noxtics
 * 1) set logscale y
 * 2) set yrange [0:100]

set terminal png color small set output '${FILE}'

set xtics (    "Jun\n2003\n" 0, \                "Jul" 1, \                "Aug" 2, \                "Sep" 3, \                "Oct" 4, \                "Nov" 5, \                "Dec" 6, \                "Jan\n2004\n" 7, \                "Feb" 8, \                "Mar" 9, \                "Apr" 10, \                "May" 11, \                "Jun" 12, \                "Jul" 13, \                "Aug" 14, \                "Sep" 15)

plot '${TMP}' using 3 title '' with lines \ ,  using 3 title  with points 3 \

_EOF_