bundles / scipy latest / scipy / datasets / _fetchers / ascent
function
scipy.datasets._fetchers:ascent
source: /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
Parameters
None
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()⚠
import matplotlib.pyplot as plt plt.gray()✓
plt.imshow(ascent)
⚠plt.show()
✓
Aliases
-
scipy.datasets.ascent