Skip to main content
Visualizing speed variations around a circuit helps identify braking zones, acceleration areas, and flat-out sections. This tutorial shows how to create a color-coded track map where speed is represented by color intensity along the racing line. 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.

Complete example

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

Comparing multiple drivers

To compare multiple drivers, create separate plots or overlay them with different colormaps:

Next steps

Last modified on March 6, 2026