Download this file
28 lines (20 with data), 455 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | #!/usr/bin/env python
import gobject
import gtk
from pylab import *
fig = figure(1)
ind = arange(30)
X = rand(len(ind),10)
lines = plot(X[:,0], 'o')
manager = get_current_fig_manager()
def updatefig(*args):
lines[0].set_data(ind, X[:,updatefig.count])
manager.canvas.draw()
updatefig.count += 1
if updatefig.count<10:
return True
else:
return False
updatefig.count = 0
gobject.timeout_add(300, updatefig)
show()
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.