cortex.quickflat.composite.add_cutout¶
- cortex.quickflat.composite.add_cutout(fig, name, dataview, layers=None, height=None, extents=None, overlay_file=None)[source]¶
Apply a cutout mask to extant layers in flatmap figure
- Parameters:
- figfigure or ax
figure to which to add cutouts
- namestr
name of cutout shape within cutouts layer to use to crop the rest of the figure
- dataviewcortex.Volume
cortex.Volume object being plotted (only used to get subject name)
- layerslist of layers in svg object
layers to which the cutout will be applied. None defaults to all. [unclear if it’s worth it to keep this input.]
- heightint
height of resulting figure. None defaults to height specified by other previous compositing functions. [unclear if it’s worth it to keep this input.]
- extentstuple | list
extents of figure. None defaults to previously specified extents. [unclear if it’s worth it to keep this input.]