pylib dynamic plot.

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.
Thank you.

···

--
View this message in context: http://www.nabble.com/pylib-dynamic-plot.-tf4859796.html#a13907020
Sent from the matplotlib - devel mailing list archive at Nabble.com.

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

···

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.

Yeah! The code helps me a lot. Thank you!
                                Cong from China

···

--
View this message in context: http://www.nabble.com/pylib-dynamic-plot.-tp13907020p15249839.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.