hippomaps.plotting.surfplot_sub_foldunfoldο
- hippomaps.plotting.surfplot_sub_foldunfold(hippunfold_dir, sub, ses, features, hemis=['L', 'R'], labels=['hipp', 'dentate'], flipRcurv=True, unfoldAPrescale=False, den='0p5mm', modality='T1w', tighten_cwindow=True, rotate=20, resourcesdir='/home/docs/checkouts/readthedocs.org/user_builds/hippomaps/checkouts/latest/hippomaps/resources', size=[350, 230], cmap='viridis', **qwargs)ο
Plots subject-specific folded and unfolded surfaces (hipp/dentate; folded/unfolded).
- Parameters:
hippunfold_dir (str) β Directory path containing unfolded hippocampus data.
sub (str) β Subject ID. Inputs are path/filenames
ses (str) β Session ID. Inputs are path/filenames
features (str) β Feature or measurement to visualize on the surface plot. Can include thickness, curvature, gyrification, subfields, or other added data that follows the same naming convention.
hemis (list of str, optional) β List of hemispheres to visualize. Default is [βLβ, βRβ].
labels (list of str, optional) β List of labels for different structures. Default is [βhippβ, βdentateβ].
flipRcurv (bool, optional) β Whether to flip the curvature map for the right hemisphere. Default is True.
unfoldAPrescale (bool, optional) β Whether to pre-scale the anterior-posterior axis during unfolding. Default is False.
den (str, optional) β Density parameter for surface plot. Default is β0p5mmβ.
modality (str, optional) β Imaging modality (e.g., βT1wβ). Default is βT1wβ.
tighten_cwindow (bool, optional) β Whether to tighten the color window for the surface plot. Default is True.
rotate (bool, optional) β Whether to rotate the surface plot. Default is True.
resourcesdir (str, optional) β Directory path containing additional resources. Default is the value of resourcesdir.
size (list of int, optional) β Size of the surface plot. Default is [350, 230].
cmap (str, optional) β Colormap for the surface plot. Default is βviridisβ.
**qwargs (dict, optional) β Additional keyword arguments for customization.
- Returns:
The function generates a surface plot for the specified subjectβs folded and unfolded hippocampus.
- Return type:
matplotlib.figure.Figure