bug fix with plotting

if there were no lines drawn, the single, final line did not have
bounds-checking done on it