<s> """<STR_LIT>""" <EOL> import matplotlib . pyplot as plt <EOL> from nilearn . plotting import plot_stat_map <EOL> from nilearn . image import index_img <EOL> from mne . datasets import sample <EOL> from mne import read_evokeds <EOL> from mne . minimum_norm import apply_inverse , read_inverse_operator <EOL> print ( __doc__ ) <EOL> data_path = sample . data_path ( ) <EOL> fname_inv = data_path + '<STR_LIT>' <EOL> fname_evoked = data_path + '<STR_LIT>' <EOL> snr = <NUM_LIT> <EOL> lambda2 = <NUM_LIT:1.0> / snr ** <NUM_LIT:2> <EOL> method = "<STR_LIT>" <EOL> evoked = read_evokeds ( fname_evoked , condition = <NUM_LIT:0> , baseline = ( None , <NUM_LIT:0> ) ) <EOL> inverse_operator = read_inverse_operator ( fname_inv ) <EOL> src = inverse_operator [ '<STR_LIT:src>' ] <EOL> stc = apply_inverse ( evoked , inverse_operator , lambda2 , method ) <EOL> stc . crop ( <NUM_LIT:0.0> , <NUM_LIT> ) <EOL> img = stc . as_volume ( src , <EOL> mri_resolution = False ) <EOL> t1_fname = data_path + '<STR_LIT>' <EOL> plot_stat_map ( index_img ( img , <NUM_LIT> ) , t1_fname , threshold = <NUM_LIT> , <EOL> title = '<STR_LIT>' % ( method , stc . times [ <NUM_LIT> ] ) ) <EOL> plt . show ( ) </s>
