how to write coordinates of a graph