[SciPy-User] Glitch in the map_coordinates doc

Jean-Luc Menut jeanluc.menut@free...
Wed Aug 18 09:30:09 CDT 2010


Hello all,

In the map_coordinate reference document page 
(http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.interpolation.map_coordinates.html), 
there is this example :

 >>> import scipy.ndimage
 >>> a = np.arange(12.).reshape((4, 3))
 >>> a
array([[  0.,   1.,   2.],
        [  3.,   4.,   5.],
        [  6.,   7.,   8.],
        [  9.,  10.,  11.]])
 >>> sp.ndimage.map_coordinates(a, [[0.5, 2], [0.5, 1]], order=1)
[ 2.  7.]


According to the last line, import scipy.ndimage should be import scipy 
as sp.


Best regards,
J.L.


More information about the SciPy-User mailing list