Skip to content

Mouse and keys

Press ? in a plot to see this list there. Keys work while the plot has focus (after a click into it).

Tools

The toolbar's first three buttons choose what a drag does; plot.tool sets it from Python.

Pan (default) Zoom Select
Drag move through time and lanes zoom to the time range select the events in a box
Shift + drag zoom to a time range the same add what is in the box
Click nothing zoom in 2× select the event
Shift / Ctrl / ⌘ + click add or remove the event — add or remove the event
Alt + click remove the event zoom out 2× remove the event
Alt + drag — — remove what is in the box
Double-click the whole timeline — —

Select is offered while something can be selected (selection_mode is not "none") and a notebook is running.

Every tool

Gesture Effect
Wheel zoom time (after a click into the plot, in full screen, or with Ctrl/⌘)
Shift + wheel scroll the lanes
Hold Space + drag pan
Drag on the time axis zoom to that range (with Select: select that range in all lanes)
Hover the event's details

Lanes in a tree

For spans (spans) and tasks with sub-tasks (parent=):

Gesture Effect
Click a name with a triangle fold or unfold the lanes under it
Alt + click a name the same, with every level under it
Double-click a name zoom to it and everything under it
[ ] fold all, unfold all

Keys

Key Effect
p z s Pan, Zoom, Select
t Time / Order
0 or Home the whole timeline
Backspace the previous view
+ − zoom in, out
← → move through time
↑ ↓ scroll the lanes
d spread overlapping events, or draw them on the lane's line
l show or hide the legend
f full screen
? this list
Esc cancel a box being drawn, else clear the selection; in full screen, leave it

The toolbar

From left to right: Pan, Zoom, Select · Time, Order · Back, Home · Clear the selection (while there is one) · Legend · Display (text size, mark size, spreading) · Save as PNG · Full screen · Mouse and keys (?).