region.labelled_surface

May 7, 2026 · View on GitHub

← back to region methods · Object methods index

Render a region object on a cortical surface and draw a text label at each region's centroid (using the region's .shorttitle / atlas label). Optionally "popout" the labels with leader lines for readability when regions cluster. Useful for figures where you need to identify each cluster by name without a separate legend.

Quick example

imgs = load_image_set('emotionreg');
t = ttest(imgs);
t = threshold(t, .005, 'unc', 'k', 10);
r = region(t);
create_figure('rls'); labelled_surface(r);

region.labelled_surface sample

See also