.. _sphx_glr_auto_examples_plot_nifti.py: ============================= Plot Nifti ============================= Here, we load an example nifti image and plot it two ways. .. rst-class:: sphx-glr-horizontal * .. image:: /auto_examples/images/sphx_glr_plot_nifti_001.png :scale: 47 * .. image:: /auto_examples/images/sphx_glr_plot_nifti_002.png :scale: 47 .. code-block:: python # Code source: Lucy Owen & Andrew Heusser # License: MIT # import import supereeg as se # load nifti objects by passing directly to Nifti class # if no parameters are passed default uses gray matter masked brain downsampled to 6 mm resolution bo_nii = se.Nifti('example_data', vox_size=6) # plot first 2 timepoints as plot_glass_brain # default will plot first timepoint bo_nii.plot_glass_brain(index=[0,1]) **Total running time of the script:** ( 0 minutes 1.746 seconds) .. only :: html .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_nifti.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_nifti.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_