.. note::
    :class: sphx-glr-download-link-note

    Click :ref:`here <sphx_glr_download_auto_examples_data_plot_scientific.py>` to download the full example code
.. rst-class:: sphx-glr-example-title

.. _sphx_glr_auto_examples_data_plot_scientific.py:


=================
Scientific images
=================

The title of each image indicates the name of the function.





.. code-block:: pytb

    Traceback (most recent call last):
      File "/build/skimage-Lp2Zl4/skimage-0.16.2/doc/examples/data/plot_scientific.py", line 1
        =================
        ^
    SyntaxError: invalid syntax





.. code-block:: python

    =================
    Scientific images
    =================

    The title of each image indicates the name of the function.

    """
    import matplotlib.pyplot as plt
    import matplotlib

    from skimage import data

    matplotlib.rcParams['font.size'] = 18

    images = ('hubble_deep_field',
              'immunohistochemistry',
              'microaneurysms',
              'moon',
              'retina',
              'shepp_logan_phantom',
              'cell',
              )


    for name in images:
        caller = getattr(data, name)
        image = caller()
        plt.figure()
        plt.title(name)
        if image.ndim == 2:
            plt.imshow(image, cmap=plt.cm.gray)
        else:
            plt.imshow(image)

    plt.show()

**Total running time of the script:** ( 0 minutes  0.000 seconds)


.. _sphx_glr_download_auto_examples_data_plot_scientific.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example



  .. container:: sphx-glr-download

     :download:`Download Python source code: plot_scientific.py <plot_scientific.py>`



  .. container:: sphx-glr-download

     :download:`Download Jupyter notebook: plot_scientific.ipynb <plot_scientific.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
