Plot ROIs on the flatmapΒΆ

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

By default, ROIs and ROI labels are displayed when a flatmap is plotted using quickflat.make_figure.

with_labels=False turns off the ROI labels. with_rois=False turns off the ROI display.

  • plot rois
  • plot rois
  • plot rois
import cortex
import numpy as np
import matplotlib.pyplot as plt

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

# Plot a flatmap with the data projected onto the surface
# By default the ROIs and their labels will be displayed
_ = cortex.quickflat.make_figure(volume)

# Turn off the ROI labels
_ = cortex.quickflat.make_figure(volume, with_labels=False)

# Turn off the ROIs
_ = cortex.quickflat.make_figure(volume, with_rois=False)

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

Gallery generated by Sphinx-Gallery