## [matplotlib-devel] pylib dynamic plot.

 [matplotlib-devel] pylib dynamic plot. From: hjc520070 - 2007-11-23 04:55:06 ```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. ```

 [matplotlib-devel] pylib dynamic plot. From: hjc520070 - 2007-11-23 04:55:06 ```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. ```
 Re: [matplotlib-devel] pylib dynamic plot. From: Darren Dale - 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 ```
 Re: [matplotlib-devel] pylib dynamic plot. From: hjc520070 - 2008-02-03 02:14:15 ```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. ```