Skip to main content
Track temperature has a large effect on F1 performance. It affects tire grip, degradation, and overall lap times. Visualize how track temperature evolves during a session. This shows the conditions drivers faced and their possible effect on strategy. Track temperature evolution during a race session

Loading the Session

Analyze track temperature changes during the 2023 Monaco Grand Prix race.

Getting Weather Data

Weather data is automatically included in the laps DataFrame. Each lap has associated weather information like track temperature, air temperature, humidity, and more.

Creating the Visualization

Plot track temperature against lap number to see how conditions evolved.

Understanding the Data

Track temperature patterns show the following:
  • Rising temperature: Often seen in afternoon sessions as the sun heats the track surface
  • Cooling trends: Can occur with cloud cover or as the sun sets
  • Stable conditions: Consistent temperature suggests predictable grip levels
  • Temperature spikes: May indicate changing weather or track conditions

Parameters

The native function accepts a drivers list. With no drivers, it uses the driver with the most recorded laps. This is the logic shown above. Pass a list to choose the drivers. The chart draws one line per driver, and all lines use the same color:
Unlike the manual code, the native function drops deleted laps and pit in and out laps before it plots. For this race, the default driver is ALO, and the chart skips laps 53 to 57 of ALO. The session’s weather data must be available (it is included in the laps by default).

Complete Example

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

Adding Air Temperature

Compare track and air temperature to see the relationship between ambient conditions and track surface.

Next Steps

  • Explore other weather data like humidity and wind speed
  • Correlate temperature changes with lap time variations
  • Analyze how different compounds perform at various track temperatures
Last modified on October 15, 2026