bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / datasets / _fetchers / ascent
function
scipy.datasets._fetchers:ascent
source: build-install/usr/lib/python3.14/site-packages/scipy/datasets/_fetchers.py:42
Signature
def ascent()Summary
Get an 8-bit grayscale bit-depth, 512 x 512 derived image for easy use in demos.
Extended Summary
The image is derived from https://pixnio.com/people/accent-to-the-top
Returns
ascent: ndarrayconvenient image to use for testing and demonstration
Notes
Array API Standard Support
ascent is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
import scipy.datasets ascent = scipy.datasets.ascent() ascent.shape ascent.max()✓
np.uint8(255)
import matplotlib.pyplot as plt plt.gray()✓
plt.imshow(ascent)
✗<matplotlib.image.AxesImage object at 0x7f3f68563610>
plt.show()
✓
Aliases
scipy.datasets.ascent