Skip to content

Commit

Permalink
ENH: Add colors for VES, POU, HAD, DOO and BEA (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
pesaventofilippo authored Oct 26, 2023
1 parent a55fa9e commit d962fa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fastf1/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ def warn_change(self):
DRIVER_COLORS: Dict[str, str] = {
"valtteri bottas": "#900000",
"zhou guanyu": "#500000",
"theo pourchaire": "#700000",

"nyck de vries": "#1e3d61",
"yuki tsunoda": "#356cac",
"daniel ricciardo": "#2b4562",
"liam lawson": "#2b4562",
"isack hadjar": "#1e6176",

"pierre gasly": "#0090ff",
"esteban ocon": "#70c2ff",
"jack doohan": "#0075c2",

"fernando alonso": "#006f62",
"lance stroll": "#25a617",
Expand All @@ -114,6 +117,7 @@ def warn_change(self):
"charles leclerc": "#dc0000",
"carlos sainz": "#ff8181",
"robert shwartzman": "#9c0000",
"oliver bearman": "#c40000",

"kevin magnussen": "#ffffff",
"nico hulkenberg": "#cacaca",
Expand All @@ -123,6 +127,7 @@ def warn_change(self):

"lewis hamilton": "#00d2be",
"george russell": "#24ffff",
"frederik vesti": "#00a6ff",

"max verstappen": "#0600ef",
"sergio perez": "#716de2",
Expand All @@ -139,13 +144,18 @@ def warn_change(self):
'VER': 'max verstappen', 'PER': 'sergio perez',
'PIA': 'oscar piastri', 'NOR': 'lando norris',
'GAS': 'pierre gasly', 'OCO': 'esteban ocon',
'DOO': 'jack doohan',
'BOT': 'valtteri bottas', 'ZHO': 'zhou guanyu',
'POU': 'theo pourchaire',
'DEV': 'nyck de vries', 'TSU': 'yuki tsunoda',
'RIC': 'daniel ricciardo', 'LAW': 'liam lawson',
'HAD': 'isack hadjar',
'MAG': 'kevin magnussen', 'HUL': 'nico hulkenberg',
'BEA': 'oliver bearman',
'ALO': 'fernando alonso', 'STR': 'lance stroll',
'DRU': 'felipe drugovich',
'HAM': 'lewis hamilton', 'RUS': 'george russell',
'VES': 'frederik vesti',
'ALB': 'alexander albon', 'SAR': 'logan sargeant'}
"""Mapping of driver names to theirs respective abbreviations."""

Expand Down

0 comments on commit d962fa8

Please sign in to comment.