
Setup
Load the Race Session
Get Driver Laps
Filter laps for a specific driver and remove slow laps that would distort the visualization.Create the Scatter Plot
Make a scatter plot using lap number as the x-axis and lap time as the y-axis. Marker colors correspond to the tire compounds used.Enhance the Plot
Make the plot more aesthetic and easier to read.Complete Example
Here’s the full code in one block:Analyzing Multiple Drivers
You can extend this to compare multiple drivers side by side:Insights from the Visualization
This type of plot reveals several key insights:- Tire Performance: Different compounds show distinct lap time clusters
- Degradation: Upward trends within a compound indicate tire wear
- Consistency: Tight clustering shows consistent driving
- Strategy: Compound changes and their timing are clearly visible
- Outliers: Slow laps (traffic, mistakes) stand out immediately
Customization Options
You can customize the plot further:Summary
This tutorial demonstrated how to create an effective lap time visualization that combines temporal data (lap number) with performance data (lap time) and strategic information (tire compound). The scatter plot format makes it easy to spot patterns, outliers, and strategic decisions throughout a race.Related Pages
Tire Strategy
Detailed tire analysis
Race Pace Analysis
Compare race pace
Plotting API
Plotting reference
Complete Race Analysis
Full race workflow