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 47a4923 commit 50e5890Copy full SHA for 50e5890
1 file changed
examples/dynamic_image_gtk.py examples/dynamic_image_gtkagg.pyexamples/dynamic_image_gtk.py renamed to examples/dynamic_image_gtkagg.py
@@ -1,22 +1,19 @@
1
#!/usr/bin/env python
2
"""
3
-An animated image - Thanks to Andrew Straw who originally provided
4
-this examples as dynamic_image_wx.py
+An animated image
5
6
import sys, time, os, gc
7
from matplotlib import rcParams
8
-# there is a bug in Numeric 23.1 that crashes with this examples
9
-rcParams['numerix'] = 'numarray'
10
11
from matplotlib.matlab import *
12
import gtk
13
14
fig = figure(1)
15
a = subplot(111)
16
x = arange(120.0)*2*pi/120.0
17
-x.resize((100,120))
+x = resize(x, (100,120))
18
y = arange(100.0)*2*pi/100.0
19
-y.resize((120,100))
+y = resize(y, (120,100))
20
y = transpose(y)
21
z = sin(x) + cos(y)
22
im = a.imshow( z, cmap=cm.jet)#, interpolation='nearest')
0 commit comments