Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
nilearn.plotting.displays.get_slicer¶
- nilearn.plotting.displays.get_slicer(display_mode)[source]¶
Retrieve a slicer from a given display mode.
- Parameters:
- display_mode
str
The desired display mode. Possible options are:
“ortho”: Three cuts are performed in orthogonal directions.
“tiled”: Three cuts are performed and arranged in a 2x2 grid.
“mosaic”: Three cuts are performed along multiple rows and columns.
“x”: Sagittal
“y”: Coronal
“z”: Axial
“xz”: Sagittal + Axial
“yz”: Coronal + Axial
“yx”: Coronal + Sagittal
- display_mode
- Returns:
- slicerAn instance of one of the subclasses of
BaseSlicer
The slicer corresponding to the requested display mode:
- “ortho”: Returns an
- “tiled”: Returns a
- “mosaic”: Returns a
- “xz”: Returns a
- “yz”: Returns a
- “yx”: Returns a
- “x”: Returns a
- “y”: Returns a
- “z”: Returns a
- slicerAn instance of one of the subclasses of