From 8551bf182a3c1cbe7f3f44a1f77d7ee01e553005 Mon Sep 17 00:00:00 2001 From: theOehrly <23384863+theOehrly@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:31:00 +0100 Subject: [PATCH] ENH: add driver colors for OWA, DEN, OSU --- fastf1/plotting.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fastf1/plotting.py b/fastf1/plotting.py index 5c1852806..3c7eba1aa 100644 --- a/fastf1/plotting.py +++ b/fastf1/plotting.py @@ -124,6 +124,7 @@ def warn_change(self): "oscar piastri": "#ff8700", "lando norris": "#eeb370", + "pato oward": "#ee6d3a", "lewis hamilton": "#00d2be", "george russell": "#24ffff", @@ -131,9 +132,11 @@ def warn_change(self): "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)""" @@ -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', @@ -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] = {