Plot cutouts on the flatmapΒΆ

Cutouts are manually generated cuts of the cortical surface to highlight a region of interest.

Cutouts are defined as sub-layers of the cutouts layer in <filestore>/<subject>/overlays.svg.

The parameter cutout of the quickflat.make_figure method should be the name of the flatmap cutout defined in the overlays.svg file.

plot cutouts
import cortex
import numpy as np
np.random.seed(1234)

# Name of a sub-layer of the 'cutouts' layer in overlays.svg file
cutout_name = "VisualCortexRight"

# Create a random pycortex Volume
volume = cortex.Volume.random(subject='S1', xfmname='fullhead')

# Plot a flatmap with the data projected onto the surface
# Highlight the curvature and which cutout to be displayed
_ = cortex.quickflat.make_figure(volume,
                                 with_curvature=True,
                                 cutout=cutout_name)

Total running time of the script: ( 0 minutes 2.249 seconds)

Gallery generated by Sphinx-Gallery