Takashi's Study Abroad

偏差値40台の高校を卒業してからアメリカの大学を首席で卒業(GPA4.0)し、ミュンヘン工科大学の大学院に合格。5年間のアメリカ留学で経た知識や経験を活かし、現地又は留学準備で役に立つ情報を発信していきます!

Sports & Exercise Science

Premier League Animation Chart

2020年9月1日

Hello everyone !!

 

This blog explains about how to create the Premier League animation chart by using MATLAB. 

 

The chart looks like this … 

 

The animated line represents accumulated points which a team gained throughout the season (I used data of season 2019/20). X axis is each game, and y axis is accumulated points. The blue and green shaded area is teams which were qualified for the Champions League and Europa League, respectively. The red shaded area is teams which were relegated from the Premier League. 

 



Procedure

1, Importing data

The data comes from a website called “Football data“. You can download soccer statistic data in almost all leagues such as Premier League, Bundesliga, Serie A … etc. Also, you can pick the conference games, the second league, and championship games. Once you pick any data you want to make the chart, just download and import it into MATLAB.

 

2, Calculating accumulated points

Unfortunately, the data does not have the accumulated points, so you have to calculate them for each team… but, don’t worry !! I explain how to do it in my YouTube video and provide the MATLAB code below. 

 

3, Modeling data

To make the animated plot, you have to change a format of the data a little bit. Basically, you just need to find accumulated points for each team and store the points team by team. Again, MATLAB code with my YouTube video will help you with this procedure. 

 

4, Plotting the data

After modeling the data, you are ready to plot. The code is somewhat complicated, but it would be still doable. Then, you can save the plot with a video file so that you can use and maybe share it on social media (Show off !!). 

 

My YouTube video

Check out my YouTube video !!

 

MATLAB code

MATLAB code with data and sample video

 

Enjoy !!

 

-Sports & Exercise Science
-, ,

執筆者:

関連記事

comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

Sports & Exercise Science

2022/04/04

Pose Estimation Live Demo

Pose Estimation Pose estimation is a technique to estimate the position and orientation of a human. …

続きを読む

Sports & Exercise Science

2022/04/01

Face Mesh

This website can detect a human face and common facial landmarks in 3D and real-time. The number of …

続きを読む

Sports & Exercise Science

2022/04/01

Motion Capture Demo

Capture your motion! You can browse the video you want to capture a human. You can download the vide…

続きを読む

no image

2022/03/29

Privacy Policy

PRIVACY NOTICELast updated March 28, 2022This privacy notice for Takashi (“Company,” &#8…

続きを読む

Sports & Exercise Science

2022/03/21

How do you reconstruct 3D ??

Goal of this article The goal of this article is to reconstruct 3D pose estimation data from two 2D …

続きを読む