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

fix redundancy - shot chart #22

Open
sVujke opened this issue Oct 14, 2024 · 1 comment
Open

fix redundancy - shot chart #22

sVujke opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers invalid This doesn't seem right

Comments

@sVujke
Copy link
Owner

sVujke commented Oct 14, 2024

    plt.xlim([-800, 800])
    plt.ylim([-200, 1300]
    
   the court limits are being defined everywhere, and this needs to be cleaned up
@sVujke sVujke added good first issue Good for newcomers invalid This doesn't seem right labels Oct 14, 2024
@sVujke sVujke self-assigned this Oct 14, 2024
@sVujke
Copy link
Owner Author

sVujke commented Oct 14, 2024

this could do the trick

def _setup_plot(self, ax, title=None):
self.draw_court(ax)
ax.set_xlim([-800, 800])
ax.set_ylim([-200, 1300])
ax.set_aspect("equal")
if title:
ax.set_title(
title,
fontsize=self.config["title"]["fontsize"],
fontweight=self.config["title"]["fontweight"],
color=self.config["title"]["color"],
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant