SciPy

scipy.misc.imshow

scipy.misc.imshow(*args, **kwds)

imshow is deprecated! imshow is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use matplotlib.pyplot.imshow instead.

Simple showing of an image through an external viewer.

This function is only available if Python Imaging Library (PIL) is installed.

Uses the image viewer specified by the environment variable SCIPY_PIL_IMAGE_VIEWER, or if that is not defined then see, to view a temporary file generated from array data.

Warning

This function uses bytescale under the hood to rescale images to use the full (0, 255) range if mode is one of None, 'L', 'P', 'l'. It will also cast data for 2-D images to uint32 for mode=None (which is the default).

Parameters:

arr : ndarray

Array of image data to show.

Returns:

None

Examples

>>> a = np.tile(np.arange(255), (255,1))
>>> from scipy import misc
>>> misc.imshow(a)

Previous topic

scipy.misc.imsave

Next topic

scipy.misc.toimage