
Setup and Configuration
First, set up the plotting environment with FastF1 color scheme and configure the session details.Loading Session and Telemetry
Load the session and extract telemetry data from the driver’s fastest lap.Creating Line Segments
Convert the track coordinates into line segments for color mapping.Building the Visualization
Create the plot with a background track line and color-coded speed overlay.Adding the Color Bar
Add a horizontal color bar to show the speed scale.Parameters
The native chart overlays every selected driver on a single axes. A shared color scale keeps colors comparable across drivers. The chart includes a driver legend and a horizontal speed colorbar. Pick the drivers with thedrivers list. The default is the top-3 finishers:
Complete Example
The whole workflow above is wrapped in a single native function:Interpreting the Visualization
- Yellow/orange sections: High-speed areas like straights and fast corners
- Blue/purple sections: Low-speed areas indicating braking zones and slow corners
- Color transitions: Show acceleration and deceleration patterns
- Track layout: Black background line provides context for the circuit shape
Alternative: Side-by-Side Subplots
The native chart overlays drivers on one axes. For a separate subplot per driver, use the manual approach:Next Steps
- Analyze lap time deltas for detailed time differences
- Compare telemetry channels side by side
- Visualize gear shifts to see transmission strategies