Created
April 28, 2022 14:16
-
-
Save databyjp/da512171d63403133357ca20581fae4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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