From: Flavio C. <fcc...@gm...> - 2006-04-18 14:19:05
|
I wrote a Stripchart script a while ago, take a look at it and feel free to use it, if you like it Flavio 2006/4/17, Mark <clu...@ya...>: > > Jonathan Brandmeyer wrote: > > 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 > > Thanks for the help. I could get the stripchart rolling by slicing "y", > otherwise the position of the plotted points would not move: > band.y[:-1] = band.y[1:] > > thank Mark > > > ___________________________________________________________ > 24 FIFA World Cup tickets to be won with Yahoo! Mail > http://uk.mail.yahoo.com > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > -- Flávio Codeço Coelho registered Linux user # 386432 --------------------------- "Laws are like sausages. It's better not to see them being made." Otto von Bismark |