From: Jonathan B. <jbr...@ea...> - 2006-04-16 20:35:42
|
On Sun, 2006-04-16 at 21:14 +0100, Mark wrote: > I am trying to create a realtime stripchart display by using the curve > object. My problem is how to get the display "rolling". I would like to > do this as efficient as possible (avoiding time consuming loops!). Any > ideas ? Your best bet is probably going to involve using slicing. Maybe something like this... # expensive inner loop gets done in C graphline[:-1] = graphline[1:] # new data point tacked on to the end graphline[-1] = n_point HTH, -Jonathan |