clipping the graph lines