How to Build Your First Spray Chart from Statcast Data (Python + matplotlib)
Turn raw Statcast batted-ball coordinates into a real spray chart. A hands-on Python + matplotlib tutorial you can run on any hitter.
Category
Roll up your sleeves. Step-by-step, copy-paste-runnable guides to pulling, charting, and analyzing real baseball data yourself — in Python and in a plain spreadsheet.
Turn raw Statcast batted-ball coordinates into a real spray chart. A hands-on Python + matplotlib tutorial you can run on any hitter.
Wins lie; run differential doesn't. Build a Pythagorean power ranking of all 30 teams in a spreadsheet, step by step, with real season data.
Statcast, Retrosheet, the MLB Stats API, Lahman and more — every free public baseball data source, ranked by what it's actually good for.
Pull real MLB data in Python in ten minutes. Install pybaseball, grab a Statcast leaderboard, and make your first chart — with copy-paste-runnable code throughout.