scipy.misc.ascent

scipy.misc.ascent()[source]

Get an 8-bit grayscale bit-depth, 512 x 512 derived image for easy use in demos

The image is derived from accent-to-the-top.jpg at http://www.public-domain-image.com/people-public-domain-images-pictures/

Deprecated since version 1.10.0: ascent has been deprecated from scipy.misc.ascent in SciPy 1.10.0 and it will be completely removed in SciPy 1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.ascent instead.

Parameters
None
Returns
ascentndarray

convenient image to use for testing and demonstration

Examples

>>> import scipy.misc
>>> ascent = scipy.misc.ascent()
>>> ascent.shape
(512, 512)
>>> ascent.max()
255
>>> import matplotlib.pyplot as plt
>>> plt.gray()
>>> plt.imshow(ascent)
>>> plt.show()
../../_images/scipy-misc-ascent-1.png