Skip to content

Commit

Permalink
Updated to numpy names.
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=4718
  • Loading branch information
mdboom committed Dec 13, 2007
1 parent a0290e2 commit 84c4130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/logo.py
Expand Up @@ -5,7 +5,7 @@

# convert data to mV
x = 1000*0.1*fromstring(
file('data/membrane.dat', 'rb').read(), Float32)
file('data/membrane.dat', 'rb').read(), float32)
# 0.0005 is the sample interval
t = 0.0005*arange(len(x))
figure(1, figsize=(7,1), dpi=100)
Expand Down
2 changes: 1 addition & 1 deletion examples/mri_demo.py
Expand Up @@ -3,7 +3,7 @@

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

#imshow(im, ColormapJet(256))
Expand Down

0 comments on commit 84c4130

Please sign in to comment.