Raw gaze¶
Gaze samples under translucent fixations. The bundled demo's gaze samples are synthetic.
- Load a Raw gaze table with your Fixations and Words tables. Open the dataset in the Scanpath view and pick a trial in Select trial.
- Turn on Raw gaze and turn off Saccades.
- In Fixations ▾ → Marker → Opacity, set 0.35 so the samples show through.
import scanpath_studio as sps
words, fixations = sps.load_sample_data()
pid, tid = "l37_1129", "l37_1129_2_1_1_Ele"
raw_gaze = sps.load_sample_raw_gaze()
fig = sps.plot_scanpath(
words,
fixations,
"l37_1129",
"l37_1129_2_2_2_Adv",
raw_gaze=raw_gaze,
fixation_opacity=0.35,
show_saccades=False,
)
sps.save_figure(fig, "raw-gaze.html")