9.2.1. Glass brain plotting in nilearn

See Plotting brain images for more plotting functionalities.

9.2.1.1. Retrieve data from Internet

9.2.1.2. Glass brain plotting: whole brain sagittal cuts

from nilearn import plotting

plotting.plot_glass_brain(stat_img, threshold=3)
plot demo glass brain

Out:

<nilearn.plotting.displays.OrthoProjector object at 0x7fc02e528730>

9.2.1.3. Glass brain plotting: black background

On a black background (option “black_bg”), and with only the x and the z view (option “display_mode”).

plotting.plot_glass_brain(
    stat_img, title='plot_glass_brain',
    black_bg=True, display_mode='xz', threshold=3)
plot demo glass brain

Out:

<nilearn.plotting.displays.XZProjector object at 0x7fc02c07e280>

9.2.1.4. Glass brain plotting: Hemispheric sagittal cuts

plotting.plot_glass_brain(stat_img,
                          title='plot_glass_brain with display_mode="lyrz"',
                          display_mode='lyrz', threshold=3)

plotting.show()
plot demo glass brain

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

Gallery generated by Sphinx-Gallery