Plotting with connected lines