Skip to main content
Understanding where speed changes occur on a circuit is crucial for lap analysis. By annotating a speed trace with corner locations, you can quickly identify braking zones, apex speeds, and acceleration patterns at specific corners. Speed trace with corner annotations

Loading the session and data

We’ll analyze the fastest qualifying lap from the 2021 Spanish Grand Prix and overlay corner markers.

Getting the fastest lap telemetry

Select the fastest lap and retrieve its telemetry data with distance information.

Loading circuit information

The circuit info contains corner locations, numbers, and other track-specific data.
The circuit_info.corners DataFrame includes:
  • Number: Corner number
  • Letter: Corner letter (for chicanes or complex sections)
  • Distance: Distance from start line in meters
  • Angle: Corner angle
  • X, Y: Track coordinates

Creating the annotated plot

Plot the speed trace and add vertical lines at each corner location.

Understanding the visualization

The annotated speed trace reveals:
  • Corner entry speeds: Where the speed drops before each corner marker
  • Minimum corner speeds: The lowest point near each corner number
  • Corner exit acceleration: How quickly speed increases after each corner
  • Straight-line performance: Speed plateaus between corners
For example, Turn 1 at Barcelona typically shows a sharp speed drop from ~310 km/h to ~150 km/h, while the high-speed Turn 9 maintains speeds above 250 km/h.

Comparing multiple drivers

You can extend this to compare multiple drivers by plotting additional speed traces:

Complete example

Next steps

Last modified on March 6, 2026