.. _sphx_glr_auto_examples_plot_read_dicom.py: ============= Title example ============= Description of the example. .. image:: /auto_examples/images/sphx_glr_plot_read_dicom_001.png :align: center .. code-block:: python # authors : some author # license : BSD3 import matplotlib.pyplot as plt import pydicom print(__doc__) ds = pydicom.read_file("CT_small.dcm") plt.imshow(ds.pixel_array, cmap=plt.cm.bone) plt.show() **Total running time of the script:** ( 0 minutes 0.096 seconds) .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_read_dicom.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_read_dicom.ipynb ` .. rst-class:: sphx-glr-signature `Generated by Sphinx-Gallery `_