Skip to main content
Track speed maps show how speed varies around a circuit. Color-code the track by speed to identify fast straights, slow corners, and braking zones. Track speed map showing speed variations around the circuit

Loading the Session

Visualize the fastest lap from the 2023 Monaco Grand Prix qualifying session.

Getting Track Position and Telemetry

The telemetry includes X, Y coordinates for the car’s position and speed data.

Creating the Visualization

Use the matplotlib LineCollection to create a color-coded track map.

Adding Corner Markers

Enhance the visualization with corner numbers from the circuit info. Put this code before the plt.show() call of the previous block. The markers then appear on the same figure.

Parameters

The native chart always draws the fastest lap of the session, so it has no driver or lap filters. The cmap parameter changes the color scale, and save_path writes the figure directly:
The default cmap='plasma' matches the chart above.

Complete Example

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

Interpreting the Visualization

  • Yellow and orange: High-speed sections like straights
  • Purple and dark blue: Low-speed corners and braking zones
  • Gradients: Show acceleration and deceleration patterns

Next Steps

Last modified on October 15, 2026