Match Events

Plotting Event Data in Matplotlib

In this Python Tutorial I will plot event data from StatsBomb in a few different scenarios. This will include shots and passes from a single match. This data will be called using the StatsBomb python library and reformatted entirely in Python. I hope you enjoy.

Tutorial - Plotting shots using StatsBomb freeze frame data

Following on from last weeks post on plotting passes, I thought it might be fun to plot the shots and locations of players using the shot freeze frame in StatsBomb data. For those of you that haven’t already, I posted a tutorial around how to extract the freeze frame data included here. So if you need to, take a look at that post before going further. For this post, I have loaded the following packages to use and colours to be applied to our plots further down: