rationalise graphs