niwidgets.StreamlineWidget¶
-
class
niwidgets.
StreamlineWidget
(filename=None, streamlines=None)[source]¶ Turns nibabel track files into interactive plots using ipyvolume.
Color for each line is rendered as a function of the endpoints of the streamline. Currently, this resolves to red for left-right, green for anterior-posterior, and blue for inferior-superior.
- Parameters
filename (str, pathlib.Path) – The path to your
.trk
file. Can be a string, or aPosixPath
from python3’s pathlib.streamlines (a nibabel streamline object) – An streamlines attribute of an object loaded by nibabel.streamlines.load
Methods
Streamline widget methods:
Methods Details
-
class
niwidgets.
StreamlineWidget
(filename=None, streamlines=None)[source] Turns nibabel track files into interactive plots using ipyvolume.
Color for each line is rendered as a function of the endpoints of the streamline. Currently, this resolves to red for left-right, green for anterior-posterior, and blue for inferior-superior.
- Parameters
filename (str, pathlib.Path) – The path to your
.trk
file. Can be a string, or aPosixPath
from python3’s pathlib.streamlines (a nibabel streamline object) – An streamlines attribute of an object loaded by nibabel.streamlines.load