Skip to content

feat: add support for hoop origin #18

Open
JoshuaSiraj wants to merge 2 commits into
Sport-Performance-Lab:mainfrom
JoshuaSiraj:JoshuaSiraj/feat/hoop_as_origin
Open

feat: add support for hoop origin #18
JoshuaSiraj wants to merge 2 commits into
Sport-Performance-Lab:mainfrom
JoshuaSiraj:JoshuaSiraj/feat/hoop_as_origin

Conversation

@JoshuaSiraj

Copy link
Copy Markdown

The hoop origin draws the data at "vu".

court = Court(court_type="nba", origin="hoop", units="ft")
_, ax = court.draw(orientation='v', showaxis=True)

image

Use the updated transform function to move the coordinates elsewhere:

shot_data['X'], shot_data['Y'] = transform(shot_data['X'], shot_data['Y'], 'v', 'hl', 'hoop', court.court_parameters)
 _, ax = court.draw(orientation='hl', showaxis=True)

image

@JoshuaSiraj JoshuaSiraj changed the title feat: add support for hoop origin feat: add support for hoop origin mlsedigital/mplbasketball#15 Mar 21, 2025
@JoshuaSiraj JoshuaSiraj changed the title feat: add support for hoop origin mlsedigital/mplbasketball#15 feat: add support for hoop origin Mar 21, 2025
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

Successfully merging this pull request may close these issues.

1 participant