Plotting a linear graph from a table of values