Examples
This gallery contains a selection of examples of the plots mplsoccer can create.
All of the examples can be run from this Anaconda environment.
To install the environment yourself use the Anaconda Prompt:
Copy the code above into a blank file called
environment.yml
, then run the following command from the directory containing the file.conda env create -f environment.yml
Activate the new environment:
conda activate mplsoccer
Radar charts
Examples of plotting a radar chart using mplsoccer.
Pizza Plots
Examples of plotting a pizza plot using mplsoccer.
Basic Pizza Plot (Percentiles)
Comparison Pizza (Percentiles)
Comparison Pizza (scales vary)
Dark Theme Pizza (Percentiles)
Bumpy Charts
Examples of plotting a bumpy chart using mplsoccer.
Pitches
Examples of the methods for plotting pitches in mplsoccer.
Event distribution using kdeplot
Plots Delaunay Tessellation of Players
Twitter and Powerpoint friendly
Tutorials
Tutorials for soccer data.
Improvements to expected threat
StatsBomb
Using real StatsBomb data for plotting.
Pitch setup
How drawing the pitch works.