Commit be7fd8be authored by Christian Brodbeck's avatar Christian Brodbeck

update example: plot_meg_inverse_solution

parent 170a637e
......@@ -39,20 +39,20 @@ for hemi in ['lh', 'rh']:
vertices = stc['vertices']
"""
time points in milliseconds
time points (in seconds)
"""
time = 1e3 * np.linspace(stc['tmin'],
stc['tmin'] + data.shape[1] * stc['tstep'],
data.shape[1])
time = np.linspace(stc['tmin'], stc['tmin'] + data.shape[1] * stc['tstep'],
data.shape[1])
"""
colormap to use
"""
colormap = 'hot'
"""
label for time annotation
label for time annotation in milliseconds
"""
time_label = 'time=%0.2f ms'
time_label = lambda t: 'time=%0.2f ms' % (t * 1e3)
brain.add_data(data, colormap=colormap, vertices=vertices,
smoothing_steps=10, time=time, time_label=time_label,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment