Skip to content

Commit be7fd8b

Browse files
update example: plot_meg_inverse_solution
1 parent 170a637 commit be7fd8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/plot_meg_inverse_solution.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@
3939
vertices = stc['vertices']
4040

4141
"""
42-
time points in milliseconds
42+
time points (in seconds)
4343
"""
44-
time = 1e3 * np.linspace(stc['tmin'],
45-
stc['tmin'] + data.shape[1] * stc['tstep'],
46-
data.shape[1])
44+
time = np.linspace(stc['tmin'], stc['tmin'] + data.shape[1] * stc['tstep'],
45+
data.shape[1])
46+
4747
"""
4848
colormap to use
4949
"""
5050
colormap = 'hot'
5151

5252
"""
53-
label for time annotation
53+
label for time annotation in milliseconds
5454
"""
55-
time_label = 'time=%0.2f ms'
55+
time_label = lambda t: 'time=%0.2f ms' % (t * 1e3)
5656

5757
brain.add_data(data, colormap=colormap, vertices=vertices,
5858
smoothing_steps=10, time=time, time_label=time_label,

0 commit comments

Comments
 (0)