Figure
visbrain.objects.BrainObj
visbrain.objects.ColorbarObj
visbrain.objects.ConnectObj
visbrain.objects.CrossSecObj
visbrain.objects.GridSignalsObj
visbrain.objects.ImageObj
visbrain.objects.PacmapObj
visbrain.objects.Picture3DObj
visbrain.objects.RoiObj
visbrain.objects.SourceObj
visbrain.objects.TopoObj
visbrain.objects.TimeFrequencyObj
visbrain.objects.TimeSeries3DObj
visbrain.objects.VectorObj
visbrain.objects.VolumeObj
Note
Click here to download the full example code
Plot MEG inverse solution.
See the original example :
from visbrain.gui import Brain
from visbrain.objects import BrainObj
from visbrain.io import download_file, read_stc
"""Download file if needed :
"""
stc_file = download_file('meg_source_estimate-lh.stc', astype='example_data')
# Read the *.stc file :
file = read_stc(stc_file)
# Get the data and vertices from the file :
data = file['data'][:, 2]
vertices = file['vertices']
# Define a brain object and add the data to the mesh :
b_obj = BrainObj('inflated', translucent=False, hemisphere='left')
b_obj.add_activation(data=data, vertices=vertices, smoothing_steps=15,
clim=(13., 22.), hide_under=13., cmap='plasma',
hemisphere='left')
# Finally, pass the brain object to the Brain module :
vb = Brain(brain_obj=b_obj)
vb.rotate('left')
vb.show()
Total running time of the script: ( 0 minutes 0.000 seconds)