graph lines by plotting points