Further progress on making simpler function to produce graphs