.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "advanced/image_processing/auto_examples/plot_face.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end <sphx_glr_download_advanced_image_processing_auto_examples_plot_face.py>` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_advanced_image_processing_auto_examples_plot_face.py: Displaying a Raccoon Face ========================= Small example to plot a raccoon face. .. GENERATED FROM PYTHON SOURCE LINES 7-18 .. image-sg:: /advanced/image_processing/auto_examples/images/sphx_glr_plot_face_001.png :alt: plot face :srcset: /advanced/image_processing/auto_examples/images/sphx_glr_plot_face_001.png :class: sphx-glr-single-img .. code-block:: Python import scipy as sp import imageio.v3 as iio f = sp.datasets.face() iio.imwrite("face.png", f) # uses the Image module (PIL) import matplotlib.pyplot as plt plt.imshow(f) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.548 seconds) .. _sphx_glr_download_advanced_image_processing_auto_examples_plot_face.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_face.ipynb <plot_face.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_face.py <plot_face.py>` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_face.zip <plot_face.zip>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_