Animating NFL play by play data using matplotlib's FuncAnimation()
summary
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
chapters (9)
- 0:00Intro
- 4:27Data Analysis
- 9:06Visualizations
- 9:57Generate Field
- 10:26Plot Players
- 12:17FuncAnimation
- 13:35Using FuncAnimation
- 15:59Plotting vs Setting Functions
- 19:05FuncAnimation Code
related talks
41mFootball's data analytics in python
31mFootball is complex, but your code doesn’t have to be — meet DataBallPy and a practical deep dive into pressing
32mCutting Edge Football Analytics in Python
30mVisual Data Storytelling with Blender and Python
59mPlotting with Matplotlib; Telling Static, Animated, & Interactive Stories
40mUse animated data stories in Jupyter to present
43mAdvanced Data Visualizations In Jupyter Notebooks
23mSport analysis with Python
