Hello. Doing real time plot. At the moment, adding new points, the graph starts to shrink, so that all points fit on the screen.
But, I need to do so, as is done in the example "Cpu plot". That is, when the graph of the curve reaches the right edge, the leftmost points are removed, and right there is a place for new points. Approximately as shown in the picture:
TIME3.jpg

But I can not understand how it is implemented in the example Cpu Plot.
Please help me to reach this target.