Octave functions to accept a line chart as input and return the plotted points