Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50e5890

Browse files
committed
fixed gtkagg to work around numeric bug
svn path=/trunk/matplotlib/; revision=377
1 parent 47a4923 commit 50e5890

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
#!/usr/bin/env python
22
"""
3-
An animated image - Thanks to Andrew Straw who originally provided
4-
this examples as dynamic_image_wx.py
3+
An animated image
54
"""
65
import sys, time, os, gc
76
from matplotlib import rcParams
8-
# there is a bug in Numeric 23.1 that crashes with this examples
9-
rcParams['numerix'] = 'numarray'
107

118
from matplotlib.matlab import *
129
import gtk
1310

1411
fig = figure(1)
1512
a = subplot(111)
1613
x = arange(120.0)*2*pi/120.0
17-
x.resize((100,120))
14+
x = resize(x, (100,120))
1815
y = arange(100.0)*2*pi/100.0
19-
y.resize((120,100))
16+
y = resize(y, (120,100))
2017
y = transpose(y)
2118
z = sin(x) + cos(y)
2219
im = a.imshow( z, cmap=cm.jet)#, interpolation='nearest')

0 commit comments

Comments
 (0)