Get as close to the points on the graph as possible by writing an function to plot.