A Python library for creating interactive and customizable visualizations of basketball statistics.
To install basket-viz, simply run:
pip install basket-viz
from basket_viz.shot_charts import ShotChart
shot_chart = ShotChart()
shot_chart.plot_shot_chart(df, player_name="NEDOVIC, NEMANJA")
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,
)