Skip to main content
Visualizing gear usage across a lap provides insight into corner characteristics, acceleration zones, and the technical demands of a circuit. This tutorial shows how to create a color-coded track map where each segment is colored by the gear being used. Gear shifts visualization on track layout

Loading the session

We’ll analyze the fastest qualifying lap from the 2021 Austrian Grand Prix.

Getting telemetry data

Extract the fastest lap and its telemetry, which includes X/Y coordinates and gear data.

Preparing the data

Convert telemetry to numpy arrays and create line segments for plotting.

Creating the visualization

Use matplotlib’s LineCollection to color each segment by gear.

Adding a colorbar

Add a colorbar to show which color corresponds to each gear.

Analyzing gear usage

When examining gear shift patterns, look for:
  • Low-speed corners: Gears 1-3 indicate tight corners requiring heavy braking
  • Medium-speed corners: Gears 4-5 show flowing sections where momentum is maintained
  • High-speed sections: Gears 6-8 reveal straights and fast corners
  • Shift points: Transitions between colors show where drivers change gears
Different circuits have distinct gear usage profiles. Street circuits like Monaco use lower gears extensively, while high-speed tracks like Monza spend more time in top gears.

Complete example

Next steps

  • Combine gear data with throttle/brake to analyze driving technique
  • Compare gear usage between different drivers on the same circuit
  • Analyze how gear usage changes between qualifying and race conditions
  • Explore other track visualizations like speed or throttle maps
Last modified on March 6, 2026