Skip to content

Instantly share code, notes, and snippets.

@databyjp
Created April 28, 2022 14:16
Show Gist options
  • Save databyjp/da512171d63403133357ca20581fae4f to your computer and use it in GitHub Desktop.
Save databyjp/da512171d63403133357ca20581fae4f to your computer and use it in GitHub Desktop.
import plotly.express as px
fig = px.scatter(shot_blot_df,
title=f'{latest_day_str} - Playoff game shot profiles',
x="filt_avg", y="segment", size="shot_freq_x",
color="shot_acc_x", color_continuous_scale=px.colors.sequential.Blues,
facet_row="group",
template="plotly_white", width=1200, height=750,
labels={'filt_avg': 'Distance from the rim', 'segment': 'Sample size',
'pts_pct_x': 'Proportion of points', 'shot_ev': 'Expected<BR>points<BR>per shot'}
)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment