Skip to content

Commit

Permalink
ENH: add driver colors for OWA, DEN, OSU
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Nov 24, 2023
1 parent ac1e5aa commit 8551bf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fastf1/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,19 @@ def warn_change(self):

"oscar piastri": "#ff8700",
"lando norris": "#eeb370",
"pato oward": "#ee6d3a",

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

"max verstappen": "#0600ef",
"sergio perez": "#716de2",
"jake dennis": "#9f99e2",

"alexander albon": "#005aff",
"logan sargeant": "#012564",
"zak osullivan": "#1b3d97",
}
"""Mapping of driver names to driver colors (hex color codes).
(current season only)"""
Expand All @@ -142,7 +145,9 @@ def warn_change(self):
'LEC': 'charles leclerc', 'SAI': 'carlos sainz',
'SHW': 'robert shwartzman',
'VER': 'max verstappen', 'PER': 'sergio perez',
'DEN': 'jake dennis',
'PIA': 'oscar piastri', 'NOR': 'lando norris',
'OWA': 'pato oward',
'GAS': 'pierre gasly', 'OCO': 'esteban ocon',
'DOO': 'jack doohan',
'BOT': 'valtteri bottas', 'ZHO': 'zhou guanyu',
Expand All @@ -156,7 +161,8 @@ def warn_change(self):
'DRU': 'felipe drugovich',
'HAM': 'lewis hamilton', 'RUS': 'george russell',
'VES': 'frederik vesti',
'ALB': 'alexander albon', 'SAR': 'logan sargeant'}
'ALB': 'alexander albon', 'SAR': 'logan sargeant',
'OSU': 'zak osullivan'}
"""Mapping of driver names to theirs respective abbreviations."""

COMPOUND_COLORS: Dict[str, str] = {
Expand Down

0 comments on commit 8551bf1

Please sign in to comment.