From: Darren D. <dar...@co...> - 2007-11-24 17:12:41
|
On Thursday 22 November 2007 11:55:04 pm hjc520070 wrote: > I just want to a dynamic plot with a line show in a plot. > The line changes every second when it gets the different > data(xdata(),ydata()) from list[i]. > list[1]=([1,2],[3,5]) list[2]=([1,2],[3,5],[5,4]) > list[3]=([1,2],[3,5],[5,4],[7,6]) > list[4]=([1,2],[3,5],[5,4],[7,6],[9,7])...... > for example, when list[1] in set for the data of the line, I will get a > line with two point (1,2)(3,5). After a second,list[2] is auto setted for > the data of the line, and I will get a line with three point. With the > different list[i] setted for the line, the line changed. > I just tried it again and again, but failed. > Can somebody help me? And just give a short code to do it. Coincidentally, I just posted some code recently that does this. See the thread titled "updating an image with a colorbar, performance issues", the script is called slow_test.py. Darren |