Skip to content

Instantly share code, notes, and snippets.

@dengemann
Created April 24, 2015 00:17
Show Gist options
  • Select an option

  • Save dengemann/e24941a27bc77056461d to your computer and use it in GitHub Desktop.

Select an option

Save dengemann/e24941a27bc77056461d to your computer and use it in GitHub Desktop.
from mne.report import Report
from mne.datasets import sample
from mne import read_evokeds
report = Report(verbose=True)
path = sample.data_path()
fname = path + '/MEG/sample/sample_audvis-ave.fif'
evoked = read_evokeds(fname, condition='Left Auditory', baseline=(None, 0),
verbose=True)
fig = evoked.plot()
report.add_figs_to_section(fig, captions='Left Auditory', section='evoked',
scale=0.9)
report.save('report.html', overwrite=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment