I acquire some data in two arrays: one for the time, and one for the value. When I reach 1000 points, I trigger a signal and plot these points (x=time, y=value).
I n
Use a fixed size array and plot that using matplot.
import collections array = collections.deque([None] * 1000, maxlen=1000)
Whenver you append to the array it will remove the first element.