From http://stackoverflow.com/questions/5528709/how-to-add-labels-to-a-plot