NOTE: Full version of this Notebook is at Kaggle.
This notebook shows race traces for each F1 race in 2024, using the Formula 1 World Championship 1950-2021 data set, which is sourced from ergast.com, and the Formula 1 Race Events dataset using data from Wikipedia.
Race traces provide an excellent way to visualize the progress of an entire Grand Prix. They show the gaps between cars, the general field spread, and the relative pace of each car throughout the race as a line gradient. The traces are calculated using cumulative race lap times, which are adjusted by the median lap time at that point in the race. The horizontal zero line represents a virtual reference car completing the average lap time of the field. The lines above this zero line depict faster cars, while the lines below it represent slower ones.
Here are some key features of the race traces:
- The line colors for each driver are based on their team colors.
- The fastest lap is marked with a ★.
- Laps where a car went via the pit lane are marked with a ●.
- Laps affected by the safety car are highlighted in yellow, indicating why the gaps between cars have reduced.
- Virtual safety cars, introduced in 2015, are highlighted in orange, as they cause the lines to spread out temporarily since leaders have completed more of the first affected lap at racing speeds.
- Overtakes are visible where the lines cross, often due to pit-stops.
- Truncated lines indicate retirement from the race.
The shadow at the bottom of the trace indicates which cars have been lapped by the lead car. This helps to reveal some effects, such as leaders making pit-stops to avoid slower traffic ahead. Backmarkers must allow leading cars through, and the edge of the shadow shows why their lines suddenly dip. Leaders may also ease off to let a lapped car through at the end of a race.
It's worth noting that good safety car data is hard to find, and the data scraped from Wikipedia may contain some mistakes. Therefore, the virtual safety car highlights in the traces are the author's estimates using lap-time data.
Overall, these race traces offer a comprehensive and informative way to understand the progress of each F1 race in 2024.
Tip: to see better resolution, <Right click> → Open Image in New Tab.
Revisions¶
All F1 Race Traces¶
There is a notebook for every year that has lap-time data:
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024.
2024 Formula One World Championship¶
For background see Wikipedia; here's an excerpt:
The 2024 FIA Formula One World Championship is a motor racing championship for Formula One cars and is the 75th running of the Formula One World Championship. It is recognised by the Fédération Internationale de l'Automobile (FIA), the governing body of international motorsport, as the highest class of competition for open-wheel racing cars. The championship is contested over a record twenty-four Grands Prix held around the world. It began in March and will end in December.
Drivers and teams compete for the titles of World Drivers' Champion and World Constructors' Champion, respectively. Max Verstappen is the reigning Drivers' Champion, while his team, Red Bull Racing-Honda RBPT, are the reigning Constructors' Champions.
Formula One Drivers' World Championship — 2024
Results:
Driver | Team | Points | Wins | Podiums | Scores | Nationality | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Max Verstappen | Red Bull | 110 | 4 | 4 | 4 | Dutch |
2 | Sergio Pérez | Red Bull | 85 | 4 | 5 | Mexican | |
3 | Charles Leclerc | Ferrari | 76 | 2 | 5 | Monegasque | |
4 | Carlos Sainz | Ferrari | 69 | 1 | 3 | 4 | Spanish |
5 | Lando Norris | McLaren | 58 | 2 | 5 | British | |
6 | Oscar Piastri | McLaren | 38 | 5 | Australian | ||
7 | George Russell | Mercedes | 33 | 4 | British | ||
8 | Fernando Alonso | Aston Martin | 31 | 5 | Spanish | ||
9 | Lewis Hamilton | Mercedes | 19 | 4 | British | ||
10 | Lance Stroll | Aston Martin | 9 | 2 | Canadian | ||
11 | Yuki Tsunoda | RB F1 Team | 7 | 2 | Japanese | ||
12 | Oliver Bearman | Ferrari | 6 | 1 | British | ||
13 | Nico Hülkenberg | Haas F1 Team | 4 | 3 | German | ||
14 | Kevin Magnussen | Haas F1 Team | 1 | 1 | Danish | ||
15 | Alexander Albon | Williams | Thai | ||||
16 | Esteban Ocon | Alpine F1 Team | French | ||||
17 | Guanyu Zhou | Sauber | Chinese | ||||
18 | Daniel Ricciardo | RB F1 Team | Australian | ||||
19 | Pierre Gasly | Alpine F1 Team | French | ||||
20 | Valtteri Bottas | Sauber | Finnish | ||||
21 | Logan Sargeant | Williams | American |
Formula One Constructors' World Championship — 2024
Results:
Name | Points | Wins | Podiums | Scores | Nationality | Drivers | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Red Bull | 195 | 4 | 8 | 9 | Austrian | Max Verstappen, Sergio Pérez |
2 | Ferrari | 151 | 1 | 5 | 10 | Italian | Carlos Sainz, Charles Leclerc, Oliver Bearman |
3 | McLaren | 96 | 2 | 10 | British | Lando Norris, Oscar Piastri | |
4 | Mercedes | 52 | 8 | German | George Russell, Lewis Hamilton | ||
5 | Aston Martin | 40 | 7 | British | Fernando Alonso, Lance Stroll | ||
6 | RB F1 Team | 7 | 2 | Italian | Daniel Ricciardo, Yuki Tsunoda | ||
7 | Haas F1 Team | 5 | 4 | American | Kevin Magnussen, Nico Hülkenberg | ||
8 | Williams | British | Alexander Albon, Logan Sargeant | ||||
9 | Alpine F1 Team | French | Esteban Ocon, Pierre Gasly | ||||
10 | Sauber | Swiss | Guanyu Zhou, Valtteri Bottas |
R1 — Bahrain Grand Prix
2024-03-02 —
Circuit: Bahrain International Circuit, Sakhir, Bahrain
Wikipedia race report
Map Search
YouTube Search
Fastest Lap
Lap | Position | Time | Driver | |
---|---|---|---|---|
39 | 1 | 1:32.608 | Max Verstappen |
Results
Driver | Team | Grid | Points | Laps | Time | Status | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Max Verstappen | Red Bull | 1 | 26 | 57 | 1:31:44.742 | Finished |
2 | Sergio Pérez | Red Bull | 5 | 18 | 57 | +22.457 | Finished |
3 | Carlos Sainz | Ferrari | 4 | 15 | 57 | +25.110 | Finished |
4 | Charles Leclerc | Ferrari | 2 | 12 | 57 | +39.669 | Finished |
5 | George Russell | Mercedes | 3 | 10 | 57 | +46.788 | Finished |
6 | Lando Norris | McLaren | 7 | 8 | 57 | +48.458 | Finished |
7 | Lewis Hamilton | Mercedes | 9 | 6 | 57 | +50.324 | Finished |
8 | Oscar Piastri | McLaren | 8 | 4 | 57 | +56.082 | Finished |
9 | Fernando Alonso | Aston Martin | 6 | 2 | 57 | +1:14.887 | Finished |
10 | Lance Stroll | Aston Martin | 12 | 1 | 57 | +1:33.216 | Finished |
11 | Guanyu Zhou | Sauber | 17 | 56 | +1 Lap | ||
12 | Kevin Magnussen | Haas F1 Team | 15 | 56 | +1 Lap | ||
13 | Daniel Ricciardo | RB F1 Team | 14 | 56 | +1 Lap | ||
14 | Yuki Tsunoda | RB F1 Team | 11 | 56 | +1 Lap | ||
15 | Alexander Albon | Williams | 13 | 56 | +1 Lap | ||
16 | Nico Hülkenberg | Haas F1 Team | 10 | 56 | +1 Lap | ||
17 | Esteban Ocon | Alpine F1 Team | 19 | 56 | +1 Lap | ||
18 | Pierre Gasly | Alpine F1 Team | 20 | 56 | +1 Lap | ||
19 | Valtteri Bottas | Sauber | 16 | 56 | +1 Lap | ||
20 | Logan Sargeant | Williams | 18 | 55 | +2 Laps |
R2 — Saudi Arabian Grand Prix
2024-03-09 —
Circuit: Jeddah Corniche Circuit, Jeddah, Saudi Arabia
Wikipedia race report
Map Search
YouTube Search
Fastest Lap
Lap | Position | Time | Driver | |
---|---|---|---|---|
50 | 3 | 1:31.632 | Charles Leclerc |
Results
Driver | Team | Grid | Points | Laps | Time | Status | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Max Verstappen | Red Bull | 1 | 25 | 50 | 1:20:43.273 | Finished |
2 | Sergio Pérez | Red Bull | 3 | 18 | 50 | +13.6431 | Finished |
3 | Charles Leclerc | Ferrari | 2 | 16 | 50 | +18.639 | Finished |
4 | Oscar Piastri | McLaren | 5 | 12 | 50 | +32.007 | Finished |
5 | Fernando Alonso | Aston Martin | 4 | 10 | 50 | +35.759 | Finished |
6 | George Russell | Mercedes | 7 | 8 | 50 | +39.936 | Finished |
7 | Oliver Bearman | Ferrari | 11 | 6 | 50 | +42.679 | Finished |
8 | Lando Norris | McLaren | 6 | 4 | 50 | +45.708 | Finished |
9 | Lewis Hamilton | Mercedes | 8 | 2 | 50 | +47.391 | Finished |
10 | Nico Hülkenberg | Haas F1 Team | 15 | 1 | 50 | +1:16.996 | Finished |
11 | Alexander Albon | Williams | 12 | 50 | +1:28.354 | Finished | |
12 | Kevin Magnussen | Haas F1 Team | 13 | 50 | +1:45.7373 | Finished | |
13 | Esteban Ocon | Alpine F1 Team | 17 | 49 | +1 Lap | ||
14 | Logan Sargeant | Williams | 19 | 49 | +1 Lap | ||
15 | Yuki Tsunoda | RB F1 Team | 9 | 49 | +1 Lap | ||
16 | Daniel Ricciardo | RB F1 Team | 14 | 49 | +1 Lap | ||
17 | Valtteri Bottas | Sauber | 16 | 49 | +1 Lap | ||
18 | Guanyu Zhou | Sauber | 20 | 49 | +1 Lap | ||
19 | Lance Stroll | Aston Martin | 10 | 5 | Accident | ||
20 | Pierre Gasly | Alpine F1 Team | 18 | 1 | Gearbox |
R3 — Australian Grand Prix
2024-03-24 —
Circuit: Albert Park Grand Prix Circuit, Melbourne, Australia
Wikipedia race report
Map Search
YouTube Search
Fastest Lap
Lap | Position | Time | Driver | |
---|---|---|---|---|
56 | 2 | 1:19.813 | Charles Leclerc |
Results
Driver | Team | Grid | Points | Laps | Time | Status | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Carlos Sainz | Ferrari | 2 | 25 | 58 | 1:20:26.843 | Finished |
2 | Charles Leclerc | Ferrari | 4 | 19 | 58 | +2.366 | Finished |
3 | Lando Norris | McLaren | 3 | 15 | 58 | +5.904 | Finished |
4 | Oscar Piastri | McLaren | 5 | 12 | 58 | +35.770 | Finished |
5 | Sergio Pérez | Red Bull | 6 | 10 | 58 | +56.309 | Finished |
6 | Lance Stroll | Aston Martin | 9 | 8 | 58 | +1:33.222 | Finished |
7 | Yuki Tsunoda | RB F1 Team | 8 | 6 | 58 | +1:35.601 | Finished |
8 | Fernando Alonso | Aston Martin | 10 | 4 | 58 | +1:40.992 | Finished |
9 | Nico Hülkenberg | Haas F1 Team | 16 | 2 | 58 | +1:44.553 | Finished |
10 | Kevin Magnussen | Haas F1 Team | 14 | 1 | 57 | +1 Lap | |
11 | Alexander Albon | Williams | 12 | 57 | +1 Lap | ||
12 | Daniel Ricciardo | RB F1 Team | 18 | 57 | +1 Lap | ||
13 | Pierre Gasly | Alpine F1 Team | 17 | 57 | +1 Lap | ||
14 | Valtteri Bottas | Sauber | 13 | 57 | +1 Lap | ||
15 | Guanyu Zhou | Sauber | 19 | 57 | +1 Lap | ||
16 | Esteban Ocon | Alpine F1 Team | 15 | 57 | +1 Lap | ||
17 | George Russell | Mercedes | 7 | 56 | Accident | ||
18 | Lewis Hamilton | Mercedes | 11 | 15 | Engine | ||
19 | Max Verstappen | Red Bull | 1 | 3 | Brakes |
R4 — Japanese Grand Prix
2024-04-07 —
Circuit: Suzuka Circuit, Suzuka, Japan
Wikipedia race report
Map Search
YouTube Search
Fastest Lap
Lap | Position | Time | Driver | |
---|---|---|---|---|
50 | 1 | 1:33.706 | Max Verstappen |
Results
Driver | Team | Grid | Points | Laps | Time | Status | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Max Verstappen | Red Bull | 1 | 26 | 53 | 1:54:23.566 | Finished |
2 | Sergio Pérez | Red Bull | 2 | 18 | 53 | +12.535 | Finished |
3 | Carlos Sainz | Ferrari | 4 | 15 | 53 | +20.866 | Finished |
4 | Charles Leclerc | Ferrari | 8 | 12 | 53 | +26.522 | Finished |
5 | Lando Norris | McLaren | 3 | 10 | 53 | +29.700 | Finished |
6 | Fernando Alonso | Aston Martin | 5 | 8 | 53 | +44.272 | Finished |
7 | George Russell | Mercedes | 9 | 6 | 53 | +45.951 | Finished |
8 | Oscar Piastri | McLaren | 6 | 4 | 53 | +47.525 | Finished |
9 | Lewis Hamilton | Mercedes | 7 | 2 | 53 | +48.626 | Finished |
10 | Yuki Tsunoda | RB F1 Team | 10 | 1 | 52 | +1 Lap | |
11 | Nico Hülkenberg | Haas F1 Team | 12 | 52 | +1 Lap | ||
12 | Lance Stroll | Aston Martin | 16 | 52 | +1 Lap | ||
13 | Kevin Magnussen | Haas F1 Team | 18 | 52 | +1 Lap | ||
14 | Valtteri Bottas | Sauber | 13 | 52 | +1 Lap | ||
15 | Esteban Ocon | Alpine F1 Team | 15 | 52 | +1 Lap | ||
16 | Pierre Gasly | Alpine F1 Team | 17 | 52 | +1 Lap | ||
17 | Logan Sargeant | Williams | 19 | 52 | +1 Lap | ||
18 | Guanyu Zhou | Sauber | 20 | 12 | Gearbox | ||
19 | Daniel Ricciardo | RB F1 Team | 11 | Accident | |||
20 | Alexander Albon | Williams | 14 | Accident |
R5 — Chinese Grand Prix
2024-04-21 —
Circuit: Shanghai International Circuit, Shanghai, China
Wikipedia race report
Map Search
YouTube Search
Fastest Lap
Lap | Position | Time | Driver | |
---|---|---|---|---|
45 | 11 | 1:37.810 | Fernando Alonso |
Results
Driver | Team | Grid | Points | Laps | Time | Status | |
---|---|---|---|---|---|---|---|
Position | |||||||
1 | Max Verstappen | Red Bull | 1 | 25 | 56 | 1:40:52.554 | Finished |
2 | Lando Norris | McLaren | 4 | 18 | 56 | +13.773 | Finished |
3 | Sergio Pérez | Red Bull | 2 | 15 | 56 | +19.160 | Finished |
4 | Charles Leclerc | Ferrari | 6 | 12 | 56 | +23.623 | Finished |
5 | Carlos Sainz | Ferrari | 7 | 10 | 56 | +33.983 | Finished |
6 | George Russell | Mercedes | 8 | 8 | 56 | +38.724 | Finished |
7 | Fernando Alonso | Aston Martin | 3 | 7 | 56 | +43.414 | Finished |
8 | Oscar Piastri | McLaren | 5 | 4 | 56 | +56.198 | Finished |
9 | Lewis Hamilton | Mercedes | 18 | 2 | 56 | +57.986 | Finished |
10 | Nico Hülkenberg | Haas F1 Team | 9 | 1 | 56 | +1:00.476 | Finished |
11 | Esteban Ocon | Alpine F1 Team | 13 | 56 | +1:02.812 | Finished | |
12 | Alexander Albon | Williams | 14 | 56 | +1:05.506 | Finished | |
13 | Pierre Gasly | Alpine F1 Team | 15 | 56 | +1:09.223 | Finished | |
14 | Guanyu Zhou | Sauber | 16 | 56 | +1:11.689 | Finished | |
15 | Lance Stroll | Aston Martin | 11 | 56 | +1:22.786 | Finished | |
16 | Kevin Magnussen | Haas F1 Team | 17 | 56 | +1:27.533 | Finished | |
17 | Logan Sargeant | Williams | 20 | 56 | +1:35.110 | Finished | |
18 | Daniel Ricciardo | RB F1 Team | 12 | 33 | Retired | ||
19 | Yuki Tsunoda | RB F1 Team | 19 | 26 | Retired | ||
20 | Valtteri Bottas | Sauber | 10 | 19 | Retired |
Laps Per Position¶
position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
driverId | ||||||||||||||||||||
Max Verstappen (1) | 202 | 15 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Sergio Pérez (2) | 0 | 129 | 49 | 35 | 26 | 19 | 11 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Charles Leclerc (3) | 4 | 48 | 72 | 78 | 39 | 10 | 18 | 3 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Carlos Sainz (4) | 58 | 6 | 62 | 14 | 41 | 22 | 5 | 12 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Lando Norris (5) | 10 | 60 | 58 | 44 | 19 | 54 | 10 | 17 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Oscar Piastri (6) | 0 | 0 | 17 | 52 | 29 | 48 | 51 | 53 | 21 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
George Russell (7) | 0 | 8 | 6 | 26 | 27 | 60 | 62 | 51 | 26 | 4 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Fernando Alonso (8) | 0 | 8 | 3 | 21 | 68 | 47 | 57 | 21 | 33 | 9 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Lewis Hamilton (9) | 0 | 0 | 5 | 3 | 21 | 8 | 32 | 46 | 61 | 13 | 12 | 4 | 5 | 5 | 2 | 1 | 8 | 2 | 3 | 0 |
Lance Stroll (10) | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 45 | 24 | 28 | 16 | 26 | 20 | 6 | 7 | 5 | 23 | 14 | 6 | 0 |
Yuki Tsunoda (11) | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 7 | 45 | 49 | 24 | 17 | 34 | 26 | 16 | 16 | 2 | 0 | 2 | 0 |
Oliver Bearman (12) | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 1 | 17 | 8 | 9 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Nico Hülkenberg (13) | 0 | 0 | 0 | 0 | 1 | 3 | 4 | 7 | 25 | 86 | 25 | 13 | 8 | 23 | 12 | 15 | 21 | 6 | 14 | 9 |
Kevin Magnussen (14) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 15 | 50 | 82 | 58 | 11 | 22 | 9 | 11 | 6 | 3 | 2 |
Alexander Albon (15) | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 1 | 12 | 19 | 57 | 29 | 35 | 44 | 12 | 4 | 2 | 1 | 0 |
Esteban Ocon (16) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 | 37 | 20 | 31 | 36 | 35 | 59 | 44 | 3 | 0 | 0 |
Guanyu Zhou (17) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 27 | 42 | 6 | 14 | 17 | 21 | 32 | 26 | 26 | 14 | 4 |
Daniel Ricciardo (18) | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 8 | 6 | 2 | 9 | 37 | 22 | 34 | 26 | 26 | 23 | 0 | 0 |
Pierre Gasly (19) | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 6 | 4 | 5 | 1 | 3 | 16 | 44 | 20 | 25 | 42 | 36 | 11 | 7 |
Valtteri Bottas (20) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 21 | 20 | 7 | 20 | 32 | 31 | 31 | 37 | 31 | 0 |
Logan Sargeant (21) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 11 | 10 | 25 | 25 | 39 | 31 | 10 | 5 | 53 |
Top F1 Drivers 2024¶
More F1 Race Traces¶
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024.
This season is still in progress: check back for updates!
See Also¶
This notebook shows the same idea for one MotoGP race, and explores several ways of adjusting the plots to highlight new details.
This notebook uses material from the Wikipedia article "2024 Formula One World Championship", which is released under the Creative Commons Attribution-Share-Alike License 3.0.