From ae264c66a9bff4b9c7bab2ef3c1d3e9b1f7721cb Mon Sep 17 00:00:00 2001 From: pabsi Date: Fri, 15 Dec 2023 13:15:35 +0100 Subject: [PATCH] FIX: Linting comment issues --- examples/example_fastf1_interactive_graph.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/example_fastf1_interactive_graph.py b/examples/example_fastf1_interactive_graph.py index 288a67ef7..f0a33176c 100644 --- a/examples/example_fastf1_interactive_graph.py +++ b/examples/example_fastf1_interactive_graph.py @@ -117,18 +117,21 @@ # PLOT THE GRAPH # fig = go.Figure() -# As we're plotting every driver laptime, is better to use a dynamic method to plot +# As we're plotting every driver laptime, is better +# to use a dynamic method to plot # each graph. We use the driver list we got before. for driver in driver_list: driver_laps = race.laps.pick_drivers(driver) # pick all laps driver_laps = driver_laps.reset_index() # clean index from race.laps - driver_laps['LapTime(s)'] = driver_laps['LapTime'].dt.total_seconds() # convert to number each laptime + # convert to number each laptime + driver_laps['LapTime(s)'] = driver_laps['LapTime'].dt.total_seconds() scatter = go.Scatter( x=driver_laps['LapNumber'], y=driver_laps['LapTime(s)'], mode='lines+markers', # use lines and scatters for each driver name=driver, - marker=dict(color=driver_laps['Compound'].map(compound_colors)), # use compound colors for scatters + # use compound colors for scatters + marker=dict(color=driver_laps['Compound'].map(compound_colors)), line=dict(color=driver_colors[driver]), # use driver assigned colors ) fig.add_trace(scatter) # show the trace