~/talk

Animating NFL play by play data using matplotlib's FuncAnimation()

Talkat PyCon US 2022 · 2022-04-27..05-03· [data-visualization, python]
links:none on file
slides:none on file

Uses 2018 NFL play‑by‑play RFID data at 0.1‑second RFID tracking resolution to animate player and ball x/y coordinates with FuncAnimation and matplotlib. Shows the concrete code pattern: build a figure, write an iterable draw function that takes frame as first argument, move one‑time plotting (legend) out of the loop, store anim in a variable, and pass an explicit frames range. Produces a working animation (includes a touchdown), code and data links on GitHub and Kaggle.

AI-written summary · about

  1. 0:00Intro
  2. 4:27Data Analysis
  3. 9:06Visualizations
  4. 9:57Generate Field
  5. 10:26Plot Players
  6. 12:17FuncAnimation
  7. 13:35Using FuncAnimation
  8. 15:59Plotting vs Setting Functions
  9. 19:05FuncAnimation Code
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.