Skip to content

Commit 1652b0b

Browse files
committed
Removed typecode= keyword parameter specification from fromstring() calls
since numarray-0.9 still doesn't support typecode. svn path=/trunk/matplotlib/; revision=224
1 parent 4a4e77e commit 1652b0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/image_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
w, h = 512, 512
44
s = file('data/ct.raw', 'rb').read()
5-
A = fromstring(s, typecode=UInt16).astype(Float)
5+
A = fromstring(s, UInt16).astype(Float)
66
A *= 1.0/max(A)
77
A.shape = w, h
88

examples/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# convert data to mV
66
x = 1000*0.1*fromstring(
7-
file('data/membrane.dat', 'rb').read(), typecode=Float32)
7+
file('data/membrane.dat', 'rb').read(), Float32)
88
# 0.0005 is the sample interval
99
t = 0.0005*arange(len(x))
1010
figure(1, figsize=(7,1), dpi=100)

0 commit comments

Comments
 (0)