Tidied up test_measure in pylabplots