Skip to main content
A speed comparison around a circuit identifies braking zones, acceleration areas, and flat-out sections. This tutorial shows how to create a color-coded track map. Color intensity along the racing line represents speed. Multi-driver speed comparison showing speed variations around the circuit

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 the drivers list. The default is the top-3 finishers:

Complete Example

The whole workflow above is wrapped in a single native function:

Interpreting the Visualization

  • Red/yellow 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

Last modified on September 3, 2026