From abfa083e18e0110c5540ee818be8ffd9bd73a172 Mon Sep 17 00:00:00 2001 From: formulatimer <71012769+formulatimer@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:14:34 +0200 Subject: [PATCH] Line too long --- fastf1/plotting/_interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastf1/plotting/_interface.py b/fastf1/plotting/_interface.py index 8188d9c38..72b97786a 100644 --- a/fastf1/plotting/_interface.py +++ b/fastf1/plotting/_interface.py @@ -717,7 +717,9 @@ def list_compounds(session: Session) -> List[str]: return list(_Constants[year].CompoundColors.keys()) -def add_sorted_driver_legend(ax: matplotlib.axes.Axes, session: Session, *args, **kwargs): +def add_sorted_driver_legend( + ax: matplotlib.axes.Axes, session: Session, *args, **kwargs +): """ Adds a legend to the axis where drivers are grouped by team and within each team they are shown in the same order that is used for selecting plot