eelbrain.plot.brain.annot_legend

eelbrain.plot.brain.annot_legend(lh, rh, *args, **kwargs)

Plot a legend for a freesurfer parcellation

Parameters:
lh : str

Path to the lh annot-file.

rh : str

Path to the rh annot-file.

labels : dict (optional)

Alternative (text) label for (brain) labels.

h : ‘auto’ | scalar

Height of the figure in inches. If ‘auto’ (default), the height is automatically increased to fit all labels.

Returns:
legend : ColorList

Figure with legend for the parcellation.

See also

eelbrain.plot.brain.annot
plot the parcellation on a brain model

Notes

Instead of annot_legend() it is usually easier to use:

>>> brain = plot.brain.annoot(annot, ...)
>>> legend = brain.plot_legend()