Module Expr Str Import alias identifier Import alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword TupleLoad NameLoad Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad ListLoad NameLoad NameLoad ListLoad Str Str body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword TupleLoad Num Num keyword Str keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num BinOpAdd BinOpMult Num NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword Str keyword Str keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num BinOpAdd BinOpMult Num NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad keyword ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword Str keyword Str keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
=========================================================
Compute power and phase lock in label of the source space
=========================================================

Compute time-frequency maps of power and phase lock in the source space.
The inverse method is linear based on dSPM inverse operator.

The example also shows the difference in the time-frequency maps
when they are computed with and without subtracting the evoked response
from each epoch. The former results in induced activity only while the
latter also includes evoked (stimulus-locked) activity.
 N/A numpy np N/A matplotlib.pyplot plt N/A mne mne io mne.datasets sample mne.minimum_norm read_inverse_operator source_induced_power N/A __doc__ N/A data_path N/A N/A sample data_path N/A raw_fname N/A data_path /MEG/sample/sample_audvis_raw.fif N/A fname_inv N/A data_path /MEG/sample/sample_audvis-meg-oct-6-meg-inv.fif N/A label_name Aud-rh N/A fname_label N/A data_path N/A /MEG/sample/labels/%s.label label_name N/A N/A tmin tmax event_id N/A -0.2 0.5 2 N/A raw N/A N/A io read_raw_fif raw_fname N/A events N/A N/A mne find_events raw stim_channel STI 014 N/A inverse_operator N/A read_inverse_operator fname_inv N/A include N/A N/A N/A N/A raw info N/A bads N/A MEG 2443 EEG 053 N/A picks N/A N/A mne pick_types N/A raw info meg True eeg False eog True stim False include include exclude bads N/A reject N/A dict grad 4e-10 mag 4e-12 eog 0.00015 N/A epochs N/A N/A mne Epochs raw events event_id tmin tmax picks picks baseline N/A None 0 reject reject preload True N/A frequencies N/A N/A np arange 7 30 2 N/A label N/A N/A mne read_label fname_label N/A n_cycles N/A frequencies 3.0 N/A epochs_induced N/A N/A N/A N/A epochs copy subtract_evoked N/A N/A N/A plt close all N/A N/A ii N/A this_epochs title N/A enumerate N/A zip N/A epochs epochs_induced N/A evoked + induced induced only N/A N/A N/A power phase_lock N/A source_induced_power this_epochs inverse_operator frequencies label baseline N/A -0.1 0 baseline_mode percent n_cycles n_cycles n_jobs 1 N/A power N/A N/A np mean power axis 0 N/A phase_lock N/A N/A np mean phase_lock axis 0 N/A times N/A epochs times N/A N/A N/A plt subplots_adjust 0.1 0.08 0.96 0.94 0.2 0.43 N/A N/A N/A plt subplot 2 2 N/A N/A 2 ii 1 N/A N/A N/A plt imshow N/A 20 power extent N/A N/A times N/A 0 N/A times N/A -1 N/A frequencies N/A 0 N/A frequencies N/A -1 aspect auto origin lower vmin 0.0 vmax 30.0 cmap RdBu_r N/A N/A N/A plt xlabel Time (s) N/A N/A N/A plt ylabel Frequency (Hz) N/A N/A N/A plt title N/A Power (%s) title N/A N/A N/A plt colorbar N/A N/A N/A plt subplot 2 2 N/A N/A 2 ii 2 N/A N/A N/A plt imshow phase_lock extent N/A N/A times N/A 0 N/A times N/A -1 N/A frequencies N/A 0 N/A frequencies N/A -1 aspect auto origin lower vmin 0 vmax 0.7 cmap RdBu_r N/A N/A N/A plt xlabel Time (s) N/A N/A N/A plt ylabel Frequency (Hz) N/A N/A N/A plt title N/A Phase-lock (%s) title N/A N/A N/A plt colorbar N/A N/A N/A plt show