
Loading the Session
Compare the fastest qualifying laps from the 2023 Spanish Grand Prix between Verstappen and Hamilton.Selecting the Laps
Use thepick_drivers() and pick_fastest() methods to get each driver’s fastest lap.
Getting Telemetry with Distance
Telemetry data includes speed, throttle, brake, and more. The telemetry fromget_car_data() already holds a cumulative Distance column. add_distance() integrates that column again from the speed, as fastf1 does, so both laps share one method. Use Distance to align the laps for comparison.
Plotting with Team Colors
Usetif1.plotting.get_team_color() to automatically fetch the correct team colors for visual consistency.
Analyzing the Traces
When examining speed traces, look for:- Braking zones: Sharp drops in speed indicate braking points. Earlier or later braking can reveal different driving styles or car characteristics.
- Minimum corner speeds: The lowest point in each dip shows how much speed is carried through corners.
- Acceleration: The steepness of the speed increase after corners indicates traction and power delivery.
- Top speeds: Peak values on straights reveal engine power and drag levels.
Parameters
The native chart accepts the shared filters. Thedrivers list selects which fastest laps to overlay; the default is the top-2 finishers:
Complete Example
The whole workflow above is wrapped in a single native function:Next Steps
- Explore other telemetry channels like throttle and brake in the Telemetry Comparison
- Learn about calculating time deltas between laps
- Analyze gear shifts and RPM data for transmission insights