Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af196d0 commit f48c919Copy full SHA for f48c919
examples/dynamic_image_gtkagg.py
@@ -2,13 +2,16 @@
2
"""
3
An animated image
4
5
-import sys, time, os, gc
+import time
6
+
7
+import gobject
8
+import gtk
9
10
import matplotlib
11
matplotlib.use('GTKAgg')
12
from matplotlib import rcParams
13
14
from pylab import *
-import gobject, gtk
15
16
fig = figure(1)
17
a = subplot(111)
@@ -33,10 +36,9 @@ def updatefig(*args):
33
36
cnt += 1
34
37
if cnt==50:
35
38
print 'FPS', cnt/(time.time() - tstart)
- return gtk.FALSE
39
+ return False
40
return True
41
-
42
cnt = 0
43
44
gobject.idle_add(updatefig)
0 commit comments