<filename>Charts and Graphs/ShortProgramShotMap.py
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv(r'C:\Users\<NAME>\Downloads\events.csv')
from MyFootballPitch import CreatePitch
CreatePitch()
for i in range(len(df)):
    plt.plot([int(df["X"][i]),int(df["X2"][i])],
             [int(df["Y"][i]),int(df["Y2"][i])], 
             color="blue")
    plt.plot(int(df["X"][i]),int(df["Y"][i]),"o", color="green")
    plt.title("Pass Map of Messi", size = 10,color = 'black') 
  

plt.axis('on')
<filename>Charts and Graphs/ShortProgramShotMap.py
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv(r'C:\Users\<NAME>\Downloads\events.csv')
from MyFootballPitch import CreatePitch
CreatePitch()
for i in range(len(df)):
    plt.plot([int(df["X"][i]),int(df["X2"][i])],
             [int(df["Y"][i]),int(df["Y2"][i])], 
             color="blue")
    plt.plot(int(df["X"][i]),int(df["Y"][i]),"o", color="green")
    plt.title("Pass Map of Messi", size = 10,color = 'black') 
  

plt.axis('on')