eigenstrapping.plotting.csplot
- eigenstrapping.plotting.csplot(scalars, surface='fsLR', hemisphere='left', orientation='landscape', vrange=(-4, 4), cmap='viridis')[source]
Automated plotting of cortical surfaces. Generates a figure of a scalar brainmap y and returns fig and ax handles for further use (if needed). Suitable for use with data registered to CIFTI 32k space only. Plots data on fs_LR_32k freesurfer-type “midthickness” surface.
- Parameters:
scalars (np.ndarray of shape=(32492,)) – Brainmap to visualize registered to standard fs_LR_32k CIFTI space.
hemisphere (str, optional) – Hemisphere to plot. The default is ‘left’.
orientation (str, optional) – Orientation of plot, ‘landscape’ or ‘portrait’. Default is ‘landscape’.
vrange (tuple, optional) – Maximum range of values to plot. Values higher or lower are truncated. Default is (-4, 4).
cmap (str, optional) – matplotlib.cm color types. The default is ‘viridis’.
- Returns:
fig (matplotlib.figure handle)
ax (matplotlib.ax handle)
Notes
If there are NaNs present in the brainmap y, these are masked out of the plotting. See
nilearn.plotting