The code that produced all that malarkey is here: https://github.com/gareth-lloyd/visualizing-events
Kudos.
The code that produced all that malarkey is here: https://github.com/gareth-lloyd/visualizing-events