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:

  1. 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
    
  2. Activate the new environment:

    conda activate mplsoccer
    

Radar charts

Examples of plotting a radar chart using mplsoccer.

Radar Charts

Radar Charts

Radar Charts
Turbine Charts

Turbine Charts

Turbine Charts

Pizza Plots

Examples of plotting a pizza plot using mplsoccer.

Basic Pizza Plot (Percentiles)

Basic Pizza Plot (Percentiles)

Basic Pizza Plot (Percentiles)
Colorful Pizza (Percentiles)

Colorful Pizza (Percentiles)

Colorful Pizza (Percentiles)
Comparison Pizza (Percentiles)

Comparison Pizza (Percentiles)

Comparison Pizza (Percentiles)
Comparison Pizza (scales vary)

Comparison Pizza (scales vary)

Comparison Pizza (scales vary)
Dark Theme Pizza (Percentiles)

Dark Theme Pizza (Percentiles)

Dark Theme Pizza (Percentiles)
Different Scales Pizza

Different Scales Pizza

Different Scales Pizza
Different Units Pizza

Different Units Pizza

Different Units Pizza

Bumpy Charts

Examples of plotting a bumpy chart using mplsoccer.

Bumpy Charts

Bumpy Charts

Bumpy Charts

Pitches

Examples of the methods for plotting pitches in mplsoccer.

Animation

Animation

Animation
Convex Hull

Convex Hull

Convex Hull
Customize colormaps

Customize colormaps

Customize colormaps
Cyberpunk theme

Cyberpunk theme

Cyberpunk theme
Event distribution using kdeplot

Event distribution using kdeplot

Event distribution using kdeplot
FBRef Touches

FBRef Touches

FBRef Touches
Grid

Grid

Grid
Heatmap

Heatmap

Heatmap
Heatmap Juego de Posición

Heatmap Juego de Posición

Heatmap Juego de Posición
Hexbin plot

Hexbin plot

Hexbin plot
Jointgrid

Jointgrid

Jointgrid
Pass Network

Pass Network

Pass Network
Pass flow plot

Pass flow plot

Pass flow plot
Pass plot using arrrows

Pass plot using arrrows

Pass plot using arrrows
Pass plot using lines

Pass plot using lines

Pass plot using lines
Photos

Photos

Photos
Plots Delaunay Tessellation of Players

Plots Delaunay Tessellation of Players

Plots Delaunay Tessellation of Players
Plots a Voronoi diagram

Plots a Voronoi diagram

Plots a Voronoi diagram
Scatter

Scatter

Scatter
Shot freeze frame

Shot freeze frame

Shot freeze frame
Standardize data

Standardize data

Standardize data
StatsBomb 360

StatsBomb 360

StatsBomb 360
Textured background

Textured background

Textured background
Twitter and Powerpoint friendly

Twitter and Powerpoint friendly

Twitter and Powerpoint friendly

Tutorials

Tutorials for soccer data.

Expected threat

Expected threat

Expected threat
Plot wedges

Plot wedges

Plot wedges
improvements to expected threat

improvements to expected threat

improvements to expected threat

StatsBomb

Using real StatsBomb data for plotting.

StatsBomb

StatsBomb

StatsBomb

Pitch setup

How drawing the pitch works.

Explain the Standardizer

Explain the Standardizer

Explain the Standardizer
Pitch Basics

Pitch Basics

Pitch Basics
Pitch comparison

Pitch comparison

Pitch comparison
Quick start

Quick start

Quick start

Gallery generated by Sphinx-Gallery