In this post, I started an attempt to create a heat map of Brazil's movement in the 1970 World Cup final, using Python with Seaborn and Matplotlib . The idea was to represent the occupation of spaces by the Brazilian team on the field, based on the style of play characteristic of that match.
The field was designed with proportional coordinates (130x90), including the side lines, goal areas and central circle, representing a realistic football field. The draw_green_field() function was used to build this layout.
The 90x130 matrix represents the field, where each point corresponds to an area of the field. The generate_heatmap() function smoothes the data using the Gaussian filter, creating "hotter" zones (busier areas).
Fictitious data based on Brazil's style of play:
The generate_1970_final_data() function generates this data, reflecting Brazilian dominance on the flanks and attack, while maintaining less defensive activity.
Check out the code on Google Colab: Brazil vs Italy, 1970 - heatmap
The final map highlights how Brazil occupied the field, with greater offensive activity, but I need to better understand how to be more accurate in filling the sides of the field, a space in which Brazil also sought to create a lot of plays. This post will have edits with the aim of concluding as soon as the map is more reliable in relation to the match.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3