<commit_before>"""
===========================
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>/rois.svg.

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

"""
import cortex

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

# 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)<commit_msg>doc (gallery), quickflat, plot_cutouts cutout name added<commit_after>"""
===========================
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>/rois.svg.

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

"""
import cortex

# Name of a sub-layer of the 'cutouts' layer in rois.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)
{'fraction_non_alphanumeric': 0.12660944206008584, 'fraction_numerical': 0.001072961373390558, 'mean_word_length': 3.697732997481108, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2471834', 'n_tokens_mistral': 530, 'n_tokens_neox': 504, 'n_words': 198}