Skip to content

Commit 84c4130

Browse files
committed
Updated to numpy names.
svn path=/trunk/matplotlib/; revision=4718
1 parent a0290e2 commit 84c4130

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/logo.py

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

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

examples/mri_demo.py

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

44
# data are 256x256 16 bit integers
55
dfile = 'data/s1045.ima'
6-
im = fromstring(file(dfile, 'rb').read(), UInt16).astype(Float)
6+
im = fromstring(file(dfile, 'rb').read(), uint16).astype(float)
77
im.shape = 256, 256
88

99
#imshow(im, ColormapJet(256))

0 commit comments

Comments
 (0)