nipy / PySurfer

Cortical neuroimaging visualization in Python
https://pysurfer.github.io/
BSD 3-Clause "New" or "Revised" License
240 stars 97 forks source link

ENH Brain: allow time_label to be function #129

Closed christianbrodbeck closed 9 years ago

christianbrodbeck commented 9 years ago

This should solve the problem of displaying time in ms while representing it in seconds (which is assumed by Brain.save_movie() when determining time dilation). To display in ms use time_label=lambda x: '%s ms' % int(round(x)).

agramfort commented 9 years ago

LGTM

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.04%) to 72.49% when pulling cad482071d442af38bddddcd675d51ec9eb36277 on christianbrodbeck:timelabel into a7b40975a960df0cc1514feabe4ec6c1cf478e92 on nipy:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.04%) to 72.49% when pulling cad482071d442af38bddddcd675d51ec9eb36277 on christianbrodbeck:timelabel into a7b40975a960df0cc1514feabe4ec6c1cf478e92 on nipy:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.04%) to 72.49% when pulling cad482071d442af38bddddcd675d51ec9eb36277 on christianbrodbeck:timelabel into a7b40975a960df0cc1514feabe4ec6c1cf478e92 on nipy:master.

larsoner commented 9 years ago

Thanks @christianbrodbeck!