Skip to content

Scanpath visualization

The Scanpath View, its regions numbered

  1. Views and Help.
  2. The Essentials | Full switch (below).
  3. The trial control bar: dataset, trial, screen, sort (⇅) and filter ().
  4. The trial's summary.
  5. The figure.
  6. Plot controls.
  7. The tabs: Annotations, Stimulus & context, Comparisons, Export and Share.

The Scanpath View draws one reading at a time, at the size of the screen it was recorded on.

Looking for a specific button?

All controls lists every button and setting on this view, menu by menu, with a picture of each menu. Search it for what you want to change, such as saccade color or legend position.

Essentials and Full

The Scanpath View opens in Essentials, with the main controls for exploring a reading. Switch to Full in the top bar whenever you want more options. The app remembers your choice in this browser.

Essentials shows:

  • the dataset and trial pickers with ◀ ▶;
  • the plot, which starts with a replay on a new visit;
  • the Animation tile, five static views and the Palette tiles;
  • the Export tab, for the figure on screen, and Share.

The More buttons show which additional controls are available in Full and offer Switch to Full. Both modes keep the selected view and palette. An active comparison keeps its switch in Essentials. Settings you chose in Full, such as trial filters, remain active in Essentials; a short note tells you when they apply. Starting a tutorial from Help switches to Full for the current visit. Corpus Analysis and Data Management are the same in both modes.

To open a mode for one visit, add ?ui=full or ?ui=essentials to the app's address (use & if the address already has a ?). This leaves your saved choice unchanged. Links created with Share use the recipient's own mode.

The numbered regions above and the rest of this guide describe Full.

Choose a trial

Pick a trial in Select trial above the plot, or step through the list with ◀ ▶. The filter () beside it narrows the list by text, participant, condition or annotation, and ⇅ sorts it. On a trial recorded over several screens, Screen picks the screen to draw. When several participants have the same trial ID, the list shows each reading with its participant in brackets, such as 3 [p2].

All controls → Trial control bar describes each control.

Keyboard shortcuts

With focus on Keys Action
The page, plot background or trial arrow buttons Left / Right Previous or next trial in the current list (A in Compare)
The page, plot background or trial arrow buttons Shift+Left / Shift+Right Previous or next trial for B in Compare
The page or plot background Space Play or pause the replay
The Replay time slider Left / Right Pause and step one frame
The Replay time slider Home / End Jump to the first or last frame
The Replay time slider Space Play or pause from the current frame

With A and B together on, either pair of trial shortcuts steps both readings. Use Tab and Shift+Tab to reach the replay controls. The slider keys also work in downloaded HTML replays.

Control the layers

Both modes start with the same View tiles and Palette. In Full, use Find a setting to jump to a control by name, or open Layers to change what appears in the plot. Click a layer’s name to edit its settings or its switch to show or hide it. Choose Axes to chart the reading by fixation order or time. Figure holds the settings for the whole plot, including framing, titles and legends.

Gaze over time plots elapsed seconds along the horizontal axis and horizontal screen position in pixels on the vertical axis. The length of each horizontal bar shows how long the fixation lasted. Turn Animation on to replay the reading on the text, then off to return to the same chart. Custom brings back your last hand-edited figure.

Section What it controls
View switch Animation on or off, or choose Scanpath, Heatmap, Illustration, Gaze over time or Custom
My views save a named view, apply it to another reading, or share it
Palette choose Colorblind-safe, Grayscale, or High contrast
Compare readings add a second reading over this one, beside it, or below it
Animation settings set playback speed, autoplay, and frame quality
Fixations the fixation markers: color, shape and size, and the fixation index
Saccades the saccade lines and arrows, in one color, by direction or by saccade type
Stimulus the text (or redacted blocks), highlighted words, the stimulus image, the font and the background
Word boxes each word's box: outline and fill, color and opacity
Heatmap where fixations concentrate, by fixation count or duration
Raw gaze the gaze samples as recorded
Filters & highlights which fixations and saccades are drawn, and which stand out
Axes chart presets, X and Y fields, and the coordinate grid
Figure screen framing, title and labels, hover fields and legends

All controls → Plot controls describes every setting in each menu.

Under the plot

Tab What it is for
Annotations Star, tag and write notes on the trial, to find or filter it later.
Stimulus & context The trial's context, such as its title, question and answers, and its highlighted word spans.
Comparisons Show the other trials that share a field with this one, such as other readings of the same text, in a grid of small figures.
Export Download the figure on screen (PNG, SVG, PDF or HTML) or its replay (HTML, GIF or MP4), or build a zip bundle of figures and data for many trials.
Share Link reopens this trial with these settings for anyone who has the same dataset. Code gives the Python or CLI code that redraws the figure. Settings file saves the plot settings and restores them.

All controls → Under the plot lists each tab's controls.

Watch the tabs under the figure

Render in code

Set up a figure in the app, then open Share → Code for the Python or CLI code that redraws it. For a dataset you imported, replace the placeholder file paths with your own.

Python and CLI: render the demo
import scanpath_studio as sps

words, fixations = sps.load_sample_data()
fig = sps.plot_scanpath(words, fixations, "l37_273", "l37_273_2_1_1_Ele")
sps.save_figure(fig, "scanpath.html")
scanpath-studio render --sample \
  -p l37_273 -t l37_273_2_1_1_Ele -o scanpath.html

For your own files, use the data loaders. The figure options table lists every figure setting with its Python keyword and CLI flag. For more CLI examples, see Common tasks.

The gallery shows how to make heatmaps, comparisons, replays and other figures in the app, the CLI and Python. For batch export and GIF or MP4 replays, see Export and share.

Back up your work

You can save each of these to a file and load it again:

What Where
figure settings Share → Settings file
favorites, tags and notes Data Management → Current dataset → Annotations → Export
column mapping and recording setup Edit dataset → Download setup file
saved figure designs My views → Export

Keep your source data alongside these files, and load the same dataset before restoring them. In the desktop app or a local install, the app also keeps your datasets, annotations and designs between sessions. See Data Management → Saved work → Your session.