From Wikipedia, the free encyclopedia
[edit] The code
#!/bin/sh
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:-alexaware.dat} > ${TMP}
gnuplot <<_EOF_ || exit 1
#22 October 2002 9653
set timefmt '%d %B %Y'
set xdata time
set format x "%b\n%y"
set size .67,.5
set title "Alexa Traffic Ranking for Wikipedia"
set xlabel " "
set ylabel "Rank"
set grid ytics noxtics
set logscale y
set yrange [*:] reverse
set terminal png color small
set output 'Alexa_traffic_ranking_for_wikipedia.png'
plot '${TMP}' using 1:4 title '' with lines \
# , '' using 1:4 title '' with impulses 3
_EOF_