michael-mccracken.net

Twitter Stats in SVG using gnuplot

Damon Cortesi just shared a handy script for grabbing your tweets and compiling some stats about when you post to twitter and who you reply to.

His script generates a list of numbers and included a Numbers template to paste them into. Since I don’t have Numbers, I’ve modified his script to write a file that can be read by gnuplot, and wrote a basic gnuplot script to output an SVG file version of the stats.

While I was at it, I changed it so it no longer counts “@someone” separately from “@someone:”.

Both scripts are right here – gnuplot_twitterstats.tgz

It uses gnuplot 4.2, which you can get on OS X with macports using port install gnuplot +no_x11'. (Or it’s a pretty easy build on its own, see the gnuplot download page )

Here are my stats: Sorry, it looks like your browser doesn’t support SVG. You’re really not missing much. Click here for a full-screen version.

Comments:
  1. January 2nd, 2008 | 1:34 pm

    You might also want to try the +no_x11 variant of gnuplot, by using port install gnuplot +no_x11.

    I don’t want to build all of X on this machine just to check out my Twitter stats ;)

  2. January 2nd, 2008 | 2:03 pm

    Good point Colin. I hadn’t actually tried the macports - I apparently built gnuplot myself, but for the life of me I can’t remember why, and I wasn’t going to recommend it - but if the port tries to build X11, that’s even worse…

  3. January 2nd, 2008 | 7:14 pm

    [...] michael-mccracken.net » Twitter Stats in SVG using gnuploton 01.02.08 1:05 [...]

  4. April 23rd, 2008 | 9:01 pm

    [...] to grab some Twitter statistics. A bunch of people modified his script in order to webify it, plot the results using gnuplot, and plot the results with the Google Charts [...]

Leave a reply

Feed, Endorsements & other Links

my bookmarks

© 2005 - 2007 Michael McCracken.