Disclaimer: If a graphing library exists that can easily do what I am trying to do I would be more than happy to switch to that so that would similarly resolve this for me.
I am currently working on graphing data that I am receiving in real time and for now I have this test block that graphs a generated sine wave. Eventually I am intending to replace that with a poll to a current variable value. For now though the graph clears everything and swipes back to left to start drawing more lines. Is there any simple way I can shift the graph once it reaches the far right such that the oldest elements get truncated out. Whatever method I implement needs to work in far excess of the view window time period so the methods that came to mind seemed like they would cause a memory leak.
