eigenstrapping.plotting.flatplot

eigenstrapping.plotting.flatplot(scalars, hemisphere='left', vrange=(-4, 4), cmap='viridis', colorbar=False)[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). Plots on the fs_LR_32k freesurfer-type “flat” surface. Suitable for use with data registered to CIFTI 32k space only.

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’.

  • 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’.

  • colorbar (bool, optional) – If True, plots the colorbar.

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