Skip to content

Heatmap

Where fixation time concentrates.

  1. Select the bundled demo in Scanpath, then participant l37_1129 and trial l37_1129_2_1_1_Ele_r0. Start with Reset visualization, turn off Stimulus → Highlight → Show.
  2. Turn on Heatmap. In Heatmap ▾, choose Interpolated and weight by fixation duration.
  3. Turn off Fixations and Saccades; keep Stimulus on.

Open the demo · All controls

scanpath-studio render --sample \
  -p l37_1129 -t l37_1129_2_1_1_Ele_r0 \
  --heatmap --heatmap-style interpolated --no-fixations --no-saccades \
  --highlight-column '' \
  -o heatmap.html
import scanpath_studio as sps

words, fixations = sps.load_sample_data()
pid, tid = "l37_1129", "l37_1129_2_1_1_Ele_r0"
fig = sps.plot_scanpath(
    words,
    fixations,
    pid,
    tid,
    show_heatmap=True,
    heatmap_style="Interpolated",
    highlight_column=None,
    show_fixations=False,
    show_saccades=False,
)

sps.save_figure(fig, "heatmap.html")

← All examples