I'm not sure exactly what you're trying to do, because when I run your program it just plots a horizontal line. But in any case, just dedicate one sprite to drawing the graph:
I'm not sure exactly what you're trying to do, because when I run your program it just plots a horizontal line. But in any case, just dedicate one sprite to drawing the graph: