Skip to content

sVujke/basket-viz

Repository files navigation

🏀 basket-viz

A Python library for creating interactive and customizable visualizations of basketball statistics.

PyPI Version Python Version License Issues Last Commit Downloads

♻️ Installation

To install basket-viz, simply run:

pip install basket-viz

⛹️‍♂️Getting Started

🎯 Shot Charts

from basket_viz.shot_charts import ShotChart

shot_chart = ShotChart()
shot_chart.plot_shot_chart(df, player_name="NEDOVIC, NEMANJA")

Alt Text

📈 Relationships

This module supports plotting relationships between different stats of players int the team.

To apply collor template that matches the brand of Euroleague teams use use_team_config=True.

from basket_viz.relationships.plotter import PlotRelationship

plotter = PlotRelationship(use_team_config=True,output_format='mp4')
plotter.plot_animated_relationship(
    df,
    team_filter="BAR",
    display_only_last_names=True,
)

Alt Text