graphing works better but no lines are plotted