https://github.com/markrcote/flot-axislabels translated to CoffeeScript.