Skip to content

Commit eaa7522

Browse files
illustrate setting time in example
1 parent d2f9043 commit eaa7522

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/plot_meg_inverse_solution.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def time_label(t):
5757
"""
5858
colormap = 'hot'
5959

60+
"""
61+
add data and set the initial time displayed to 100 ms
62+
"""
6063
brain.add_data(data, colormap=colormap, vertices=vertices,
6164
smoothing_steps=10, time=time, time_label=time_label,
6265
hemi=hemi, initial_time=0.1)
@@ -66,6 +69,11 @@ def time_label(t):
6669
"""
6770
brain.scale_data_colormap(fmin=13, fmid=18, fmax=22, transparent=True)
6871

72+
"""
73+
To change the time displayed to 80 ms uncomment this line
74+
"""
75+
# brain.set_time(0.08)
76+
6977
"""
7078
uncomment these lines to use the interactive TimeViewer GUI
7179
"""

0 commit comments

Comments
 (0)