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

# 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,

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

Gallery generated by Sphinx-Gallery