Skip to content

Commit 11ce432

Browse files
ENH movie example: time in ms
1 parent b8b8c10 commit 11ce432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/save_movie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
data = stc['data']
2828
times = np.arange(data.shape[1]) * stc['tstep'] + stc['tmin']
2929
brain.add_data(data, colormap='hot', vertices=stc['vertices'],
30-
smoothing_steps=10, time=times, time_label='%0.3f s',
31-
hemi=hemi)
30+
smoothing_steps=10, time=times, hemi=hemi,
31+
time_label=lambda t: '%s ms' % int(round(t * 1e3)))
3232

3333
"""
3434
scale colormap

0 commit comments

Comments
 (0)