Visualize subject head movement

Show how subjects move as a function of time.

# Authors: Eric Larson <>
# License: BSD (3-clause)

from os import path as op

import mne


data_path = op.join(mne.datasets.testing.data_path(verbose=True), 'SSS')

pos = mne.chpi.read_head_pos(op.join(data_path, 'test_move_anon_raw.pos'))

Visualize the subject head movements as traces:


Or we can visualize them as a continuous field (with the vectors pointing in the head-upward direction):


Total running time of the script: ( 0 minutes 1.580 seconds)

Estimated memory usage: 8 MB

Gallery generated by Sphinx-Gallery