Saturday, December 31, 2011

End of year blog summary

I always mean to analyse what I blog about over the year, but never get round to it.

Well I finally have by downloading a single page html for the year of 2011.

Using some perl to extract the categories into the form Label->Frequency

Finally a short gnuplot script to do a histogram (this is very simple and I'm sure could be improved):

set style data histograms
set style fill solid 1.0 border -1
set xtics rotate
set term png
set output "barchart.png"
plot 'cats.txt' using 2:xticlabels(1) title 'categories'

Giving a png file that is here to given the categories.

No comments: