Jump to content

File talk:Alexa ranking for global top 500.png

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

Here is a shell script that creates this graph using gnuplot:

#!/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:-alexaglobalrank.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 global Top 500"
set xlabel " "
set ylabel "Rank"
set grid ytics noxtics
#set logscale y
set yrange [1:500] reverse

set terminal png color small
set output 'Alexa_ranking_for_global_top_500.png'

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

_EOF_

Start a discussion