This function generates an array of x, y coordinates suitable for visual representation using the create_scatter_plot function. This is particularly useful for mapping the locations of specific events or actions on a defined space, such as a football pitch.
Basic format: ["cartesian_extract", "row_name", [search_criteria], "cartesian_name", "x_max", "y_max"]Â
row_name (string): Specifies the Angles row name of your clips
search_criteria (list of dictionaries): Defines the conditions that the data must meet to be included
cartesian_name (string): Identifies the name of the Cartesian attribute or qualifier to be extracted
x_max (value): Defines the maximum value on the x-axis used in Angles Markup
y_max (value): Defines the maximum value on the y-axis used in Angles Markup
In the following example, we want to extract the co-ordinates from the attributes named 'Pitch' which exist in 'Shot' qualifiers found in the 'Possession' clips. These co-ordinates will be no larger than 100 for the x value and 100 for the y value:
e.g: ["cartesian_extract", "Possession", [{"Event":"Shot"}], "Pitch", 100, 100]