:param doc:
Plots the graph
:param df:
Provide the dataframe
:param headers:
Give the headers to the dataframe - Headers should be ["x", "y", "team_id", "player_id","time"]
{ x, y - int/float - Player location coordinates x and y
team_id - int/string - Team Id for both attacking and defending teams
player_id - int/string - Player Id for both attacking and defending team. Id for ball is optional
time - int/float - Game time in seconds or any units. }
NOTE - Time difference between each frame of game animation should increase uniformly. For example, time different between current and next frame should be same as 1 across the dataset.
:param id_def:
(int/string) - Provide id of defending team
:param id_att:
(int/string) - Provide id of attacking team
:param x_range:
(list/tuple of min max of pitch dimension) - Provide x range of the pitch dimension
:param y_range:
(list/tuple of min max of pitch dimension) - Provide y range of the pitch dimension
:param image_url:
(string/list of string) - Provide the location of the background image for the pitch
:param slider_steps:
(int/float) - Provide the slider steps - This is the difference in time between each frame of game action.
:param sport:
('football'/'basketball') - Provide the sport details to change slider function - Default is football(⚽️)
'Football' allows slider timer to move from low to max (0-90 minutes), while sports that have decreasing timer (12 to 0 minutes) should use "basketball".
:param anim_speed:
Optional (int/float) - Provide speed of animation - milliseconds
:param show_dist_speed:
(True/False) - Turns on/off plotting speed and distance. - Default value is False.
Note - Turning on speed and distance plots could make animation rending slow.
:param doc:
Plots the graph
:param df:
Provide the dataframe
:param headers:
Give the headers to the dataframe - Headers should be ["x", "y", "team_id", "player_id","time"]
{ x, y - int/float - Player location coordinates x and y
team_id - int/string - Team Id for both attacking and defending teams
player_id - int/string - Player Id for both attacking and defending team. Id for ball is optional
time - int/float - Game time in seconds or any units. }
NOTE - Time difference between each frame of game animation should increase uniformly. For example, time different between current and next frame should be same as 1 across the dataset.
:param id_def:
(int/string) - Provide id of defending team
:param id_att:
(int/string) - Provide id of attacking team
:param x_range:
(list/tuple of min max of pitch dimension) - Provide x range of the pitch dimension
:param y_range:
(list/tuple of min max of pitch dimension) - Provide y range of the pitch dimension
:param image_url:
(string/list of string) - Provide the location of the background image for the pitch
:param slider_steps:
(int/float) - Provide the slider steps - This is the difference in time between each frame of game action.
:param sport:
('football'/'basketball') - Provide the sport details to change slider function - Default is football(⚽️)
'Football' allows slider timer to move from low to max (0-90 minutes), while sports that have decreasing timer (12 to 0 minutes) should use "basketball".
:param anim_speed:
Optional (int/float) - Provide speed of animation - milliseconds
:param attack:
(True/False) - If 'True', then the attacking team is considered players marking and defending team is considered as players being marked. If 'false' then logic is reversed.
:param df:
Provide the dataframe
:param headers:
Give the headers to the dataframe - Headers should be ["x", "y", "team_id", "player_id","time"]
{ x, y - int/float - Player location coordinates x and y
team_id - int/string - Team Id for both attacking and defending teams
player_id - int/string - Player Id for both attacking and defending team. Id for ball is optional
time - int/float - Game time in seconds or any units. }
NOTE - Time difference between each frame of game animation should increase uniformly. For example, time different between current and next frame should be same as 1 across the dataset.
:param id_def:
(int/string) - Provide id of defending team
:param id_att:
(int/string) - Provide id of attacking team
:param time_steps:
(int/float) - Provide the time steps - Difference in time between each frame of game action.
:param attack:
(True/False) - If 'True', then the attacking team is considered players marking and defending team is considered as players being marked. If 'false' then logic is reversed.
:param threshold:
(int) - Get the threshold to consider players as marked - players who were tagged as marked below threshold would not be considered.