Jump to content

File talk:Alexa ranking for English-language sites.png

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Here is a shell script that uses gnuplot to create this graph:

#!/bin/sh

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

sed     's/^[   ]*//
        s/\([0-9]\),\([0-9]\)/s\1\2/g
        s/,/ /g
        s/#\([0-9]\)/\1/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
        s/\([0-9][0-9][0-9][0-9][       ]*[0-9][0-9]*\).*/\1/
        ' ${1:-alexaenglishrank.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 Ranking of Wikipedia in English-language Top 100"
set xlabel " "
set ylabel "Rank"
set grid ytics noxtics
#set logscale y
set yrange [1:100] reverse

set terminal png color small
set output 'Alexa_ranking_for_English-language_sites.png'

plot '${TMP}' using 1:4 title  with lines \

_EOF_

Start a discussion