Revision: 4718
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4718&view=rev
Author:   mdboom
Date:     2007-12-13 05:40:40 -0800 (Thu, 13 Dec 2007)

Log Message:
-----------
Updated to numpy names.

Modified Paths:
--------------
    trunk/matplotlib/examples/logo.py
    trunk/matplotlib/examples/mri_demo.py

Modified: trunk/matplotlib/examples/logo.py
===================================================================
--- trunk/matplotlib/examples/logo.py   2007-12-12 20:13:52 UTC (rev 4717)
+++ trunk/matplotlib/examples/logo.py   2007-12-13 13:40:40 UTC (rev 4718)
@@ -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)

Modified: trunk/matplotlib/examples/mri_demo.py
===================================================================
--- trunk/matplotlib/examples/mri_demo.py       2007-12-12 20:13:52 UTC (rev 
4717)
+++ trunk/matplotlib/examples/mri_demo.py       2007-12-13 13:40:40 UTC (rev 
4718)
@@ -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))


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to