MICA-MNI / BrainStat

A statistics and context decoding toolbox for neuroimaging.
https://brainstat.readthedocs.io
Other
94 stars 22 forks source link

Suggestions for Tutorial 01: Linear Models #203

Closed sheyma closed 3 years ago

sheyma commented 3 years ago

Hi,

Tutorial 01: Linear Models works amazing!

Here are two minor suggestions:

from brainspace.datasets import load_fsa5
from brainspace.plotting import plot_hemispheres
# Load fsaverage5 surfaces
surf_lh, surf_rh = load_fsa5()
grad = np.ones((1, 10242*2))
MASK = np.concatenate((mask,mask),axis=0)
MASK[10242:] = False
grad[0, 0:10242] = slm.t
grad[0, np.where(MASK == False)] = np.nan
plot_hemispheres(surf_lh, surf_rh, array_name=grad, size=(1200, 400), cmap='viridis_r',
                 color_bar=True,  zoom=1.,  interactive=False, embed_nb=True,
                 nan_color = (0.9,0.9,0.9,1))

tvals

Screenshot_2021-07-31_12-48-33

Cheers!

sheyma commented 3 years ago

actually, this one looks also beautiful:

E496n0XXIAggiyJ