visualization

Convex Hulls, Delaunay Triangulations and Voronoi Diagrams

In our last tutorial, we studied how to visualize a pass network for the teams from a particular match and how to analyse the networks using knowledge from complex network analysis literature.

Pass Network Analysis

In our last tutorial we studied how to draw a pass map, a shot map and their corresponding heat maps. We used statsbomb’s open even data from the match between Real Madrid and Barcelona, which Real Madrid ended up winning 2-0.

Draw a football pitch

If you do not want to recreate a football pitch manually using Python (which would be rather tedious) you can simply use the mplsoccer module without any concern. To my knowledge it provides with the best functionalities to draw a football pitch.

Draw a pass map, a shot map and their corresponding heat maps

In this post, we will learn how to draw simple pass maps and shot maps and visualize their corresponding heat maps. We will study use the event data from the Real Madrid vs.