fixing the fact that the next line segment of the graph would draw over the last dot point