Chapter 25 Key Takeaways — F1 Data Visualization

Key Takeaways

  1. The question picks the chart, and the reference is part of the question. The 2025 Japanese GP's gap-to-leader chart put Verstappen "11.033 s behind" on lap 22 because Antonelli led during the stops. The gap to Verstappen showed the real race: Norris 1.0–2.6 s behind on all 49 racing laps, never inside 1 s.
  2. Bars promise length, so bars need a meaningful zero. Median laps from zero look identical. Cut at 90.9 s, Gasly's bar is 12.7 times Piastri's for a 0.93 % difference. Draw gaps, with intervals: Piastri, Verstappen and Norris were within 0.03 s, and their intervals overlap.
  3. Clip the view, never the data. Two out-laps (114 s) squashed a 2.9 s racing signal into 12 % of the panel. Set a window, break the line and mark the off-scale laps with their true values.
  4. Team colours are identity, not accessibility. Half the grid fails 3:1 contrast on white in every season from 2023 to 2026 (Mercedes 2025: 1.40:1). Audi and Ferrari in 2026 are ΔE 1.7 apart, effectively one colour.
  5. Never let colour be the only cue. Use dashes for team-mates, markers for shared hues and direct labels instead of legends. The Ferrari/Audi chart then reads the same under simulated deuteranopia.
  6. Lightness is the channel that survives colour-blindness, and the one a rainbow scale breaks. Jet's lightness falls in 108 of 255 steps. Viridis and plasma rise monotonically.
  7. Signed data need a diverging scale with a grey middle. "Who gains where" used Red Bull blue and McLaren orange as poles (a warm/cool pair that survives deuteranopia), with grey for "too close to call", 37 % of the Suzuka lap.
  8. Show the instrument's limits on the chart. 65.1 % of the Anchor A delta lies within the ±0.05 s noise band. The 2026 Suzuka pole lap has 25.9 s of frozen telemetry, so show it flagged, not hidden.
  9. Show distributions, not means. At Suzuka 2025 the typical spread of a driver's clean laps (IQR 0.495 s) was five times the typical gap between neighbouring finishers (0.098 s).
  10. Small multiples share scales. Independent axes make every panel look equally dramatic.
  11. Interactive charts need a static fallback and a table view. Tooltips enhance; they never gate.
  12. Fixing one accessibility problem can break another. Darkening failing team colours to 3:1 removed every contrast failure and raised collisions (2026: 4 to 9). Check the colours actually in each chart.

Formulas & Metrics

Name Formula / definition Reading Example (this chapter)
Linearised sRGB $c_{lin} = c/12.92$ if $c \le 0.04045$, else $((c+0.055)/1.055)^{2.4}$ undo the screen's gamma —
Relative luminance $Y = 0.2126R + 0.7152G + 0.0722B$ (linear) how much light reaches the eye Mercedes #27F4D2: Y ≈ 0.70
Contrast ratio (WCAG 2.x) $(Y_{hi} + 0.05)/(Y_{lo} + 0.05)$; marks need ≥ 3:1 1 = invisible, 21 = black on white Mercedes 2025 1.40:1; McLaren 2.52:1
Colour difference ΔE $100\,\lVert \text{OKLab}_1 - \text{OKLab}_2 \rVert$ perceptual distance Audi–Ferrari 2026: 1.7
CVD simulation Machado et al. (2009) 3 × 3 matrix on linear RGB, severity 1.0 what protan/deutan readers see Ferrari–Aston Martin 2025: 33.8 → 10.0 (deutan)
Separation thresholds worst-case ΔE < 6 collides; 6–8 needs a second cue; normal-vision ΔE ≥ 15 for neighbours working rules 9 pairs "needs 2nd cue" in 2025
Bar distortion (bar ratio − 1)/(data ratio − 1) how much a truncated axis exaggerates GAS vs PIA cut at 90.9 s: ≈ 1,260×
Pair gap gap$_i$(L) − gap$_{ref}$(L), from line crossings leader-independent gap to a fixed car NOR to VER, Suzuka 2025: median 1.515 s
Noise band (telemetry) ±0.05 s on a delta trace (Chapter 19 rule) below it, ~3.7 Hz cannot vouch 65.1 % of Anchor A inside
Colormap check OKLab L along the scale must be monotone for magnitude lightness = order jet: 108/255 decreasing steps

Common Mistakes (and the fix)

Mistake Fix
Gap-to-leader chart in a race with stops Gap to a fixed car (viz.pair_gaps), or grey the stop window and say why
Race trace against the winner's average in a safety-car race A fixed-car reference, or a reference built from green laps only, named on the axis
Bars of lap times or speeds from a non-zero baseline Convert to gaps from the best; dots + intervals
Deleting pit/SC laps from a line Clip the view, break the line, mark the excluded points (viz.clip_view)
Colour-only legend for four or fewer lines Direct labels at the line ends
Team-mates in one colour, both solid Dash the second driver (plots.driver_styles); add markers
Rainbow ('jet') for speed viridis / plasma; discrete steps for gear
Yellow (or any hue) at the zero of a gain/loss map Two-hue diverging map with a neutral grey midpoint
Small multiples with free axes sharex=True, sharey=True
Interactive chart with no fallback Designed static PNG + CSV table view
Dropping a bad-telemetry lap silently Show it flagged (quality check in the title), or say in the text why it is excluded
A title that names the chart A title that states the finding, with a number

Decision Checklist (for the analyst before publishing)

  • [ ] I can say the question in one sentence; the title answers it with a number.
  • [ ] The reference is fixed and named on the axis ("Gap to VER at the line (s), up = ahead").
  • [ ] Bars start at a meaningful zero; windows keep outliers visible as markers.
  • [ ] viz.palette_report passes for the colours in this chart, or each failing pair has a second cue.
  • [ ] The chart still reads in viz.simulate_figure(fig, "deutan") and in greyscale.
  • [ ] Magnitude uses an ordered scale, and signed data a grey-midpoint diverging scale.
  • [ ] Data limits are on the chart: noise band, frozen telemetry, n, and stated assumptions (fuel correction).
  • [ ] Source line, alt text and a 2–4-sentence described-figure paragraph are written.
  • [ ] Any interactive version has a static fallback and a CSV.