Image talk:Alexa reach measurement for wikipedia.png
From Wikipedia, the free encyclopedia
Too many data points were posted on Wikipedia:Awareness statistics for September, 2004. I took 4 fairly evenly-spaced dates to use for this chart. --Kbh3rd 21:39, 1 Oct 2004 (UTC)
[edit] The code
#!/bin/sh TMP1="_gpdata1_$$" TMP2="_gpdata2_$$" trap "/bin/rm -f ${TMP1} ${TMP2} ; exit" 0 FILE1="alexareach2.dat" # make alexareach1.dat to plot line for *all* datapoints FILE2="alexareach2.dat" 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:-$FILE1}" > ${TMP1} 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' "${2:-$FILE2}" > ${TMP2} gnuplot <<_EOF_ || exit 1 #22 October 2002 9653 set timefmt '%d %B %Y' set xdata time set format x "%b\n%y" set size .75,.67 set title "Alexa reach measurement for wikipedia" set xlabel " " set ylabel "Reach per million viewers" set grid ytics noxtics #set logscale y #set yrange [*:] reverse set terminal png color small set output 'Alexa_reach_measurement_for_wikipedia.png' set pointsize .5 plot '${TMP1}' using 1:4 title '' with lines \ , '${TMP2}' using 1:4 title '' with points 3 _EOF_