cortex.quickflat.make_svg

cortex.quickflat.make_svg(fname, braindata, with_labels=False, with_curvature=True, layers=['rois'], height=1024, overlay_file=None, with_dropout=False, **kwargs)[source]

Save an svg file of the desired flatmap.

This function creates an SVG file with vector graphic ROIs overlaid on a single png image. Ideally, this function would layer different images (curvature, data, dropout, etc), but that has been left to implement at a future date if anyone really wants it.

Parameters
fnamestring

file name to save

braindataDataview

the data you would like to plot on a flatmap

with_labelsbool

Whether to display text labels on ROIs

with_curvaturebool

Whether to include background curvature

layerslist

List of layer names to show

heightint

Height of PNG in pixels

overlay_filestr

Custom ROI overlays file to use

with_dropoutbool or Dataview

If True or a cortex.Dataview object, hatches will be overlaid on top of the flatmap to indicate areas with dropout. If set to True, the dropout areas will be estimated from the intensity of the reference image. If set to a cortex.Dataview object, values in the dataset will be considered dropout areas. The transparency of the hatches is proportional to the intensity of the values in the dropout dataset.