Word-box heatmap¶
Fixation time within each word box.
- Open your data in the Scanpath view and pick a trial in Select trial.
- Turn on Heatmap. In Heatmap ▾ → Style, choose Word boxes. Keep Color → By at Duration (ms).
- Turn off Fixations and Saccades, and keep Stimulus on.
import scanpath_studio as sps
words, fixations = sps.load_sample_data()
pid, tid = "l37_1129", "l37_1129_2_1_1_Ele"
fig = sps.plot_scanpath(
words,
fixations,
pid,
tid,
show_heatmap=True,
heatmap_style="Word boxes",
show_fixations=False,
show_saccades=False,
)
sps.save_figure(fig, "word-boxes.html")