Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot problem #28

Open
ghost opened this issue Dec 29, 2022 · 2 comments
Open

Plot problem #28

ghost opened this issue Dec 29, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 29, 2022

I have a dataframe containing x and y coordinates of the shot locations of Erling Haaland in today's game vs. Leeds. However, when I run my code, everything plots except the x and y coordinates. I'm fairly new to programming as this is my first project by myself. Not sure if I need to adjust the coordinates or if I am leaving out lines of code. Any help is appreciated!
![Screenshot 2022-12-28 at 7 16 58 PM](https://user-images.git
Screenshot 2022-12-28 at 7 17 05 PM
hubusercontent.com/120134876/209888582-3aab90c8-4872-4d73-8694-941c530
Screenshot 2022-12-28 at 7 17 22 PM
04986.png)

@ghost
Copy link
Author

ghost commented Dec 29, 2022

Screenshot 2022-12-28 at 7 16 58 PM

@Torvaney
Copy link
Owner

Hey - what data source are you using? By default, annotate_pitch uses StatsPerform coordinates which are 100x100, but it looks like yours are scaled 0-1 in both directions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant