#!/usr/bin/gnuplot # General settings set timefmt '%Y-%m-%d'; set xdata time; set key top left; set grid; set xlabel "Date"; set xrange ["2001-01-01":"2004-02-01"] set format x '%Y-%m'; set format y '%.1s %c'; # Totals graph set terminal png small; set output "/tmp/stats/totals.png"; set data style lines; set title "Journal site growth" set ylabel "Total users"; plot "lj-totbyday.txt" using 1:2 title "LiveJournal", \ "blurty-totbyday.txt" using 1:2 title "Blurty", \ "dj-totbyday.txt" using 1:2 title "DeadJournal", \ "gj-totbyday.txt" using 1:2 title "GreatestJournal", \ "uj-totbyday.txt" using 1:2 title "uJournal"; # New users graph set output "/tmp/stats/newusers.png"; set data style boxes; set title "Journal site growth rate" set ylabel "New accounts"; set label 1 "-- LJ: Invite codes" at "2001-09-02",3000 rotate set label 2 "LJ: Commercials; LJ, uJ: no invite codes --" at "2003-12-12",17000 right norotate set label 3 "-- uJ: Invite codes" at "2003-01-01",3000 rotate plot "lj-newbyday.txt" using 1:2 title "LiveJournal", \ "blurty-newbyday.txt" using 1:2 title "Blurty", \ "dj-newbyday.txt" using 1:2 title "DeadJournal", \ "gj-newbyday.txt" using 1:2 title "GreatestJournal", \ "uj-newbyday.txt" using 1:2 title "uJournal";