eelbrain.plot._brain_object.Brain.enable_vertex_selection

Brain.enable_vertex_selection(color='red')

Find source space vertice by right-clicking on the brain

After enabling this functionality, each right-click on the brain will mark the closest vertex and the vertex number will be printed in the terminal.

Parameters:

color (mayavi color) – Color for the vertex marker.

Examples

Load a source space and plot it to be able to select vertices:

ss = SourceSpace.from_file('directory/mri_subjects', 'fsaverage', 'ico-4')
brain = plot.brain.brain(ss)
brain.enable_vertex_selection()