Update app.py
Browse files
app.py
CHANGED
|
@@ -46,6 +46,7 @@ function_dict={
|
|
| 46 |
'tj_stuff_roling_game':'Rolling tjStuff+ by Game',
|
| 47 |
'location_plot_lhb':'Locations vs LHB',
|
| 48 |
'location_plot_rhb':'Locations vs RHB',
|
|
|
|
| 49 |
}
|
| 50 |
|
| 51 |
|
|
@@ -200,8 +201,8 @@ main_ui = ui.page_sidebar(
|
|
| 200 |
# Rows for selecting plots and split options
|
| 201 |
ui.row(
|
| 202 |
ui.column(4, ui.input_select('plot_id_1', 'Plot Left', function_dict, multiple=False, selected='velocity_kdes')),
|
| 203 |
-
ui.column(4, ui.input_select('plot_id_2', 'Plot Middle', function_dict, multiple=False, selected='
|
| 204 |
-
ui.column(4, ui.input_select('plot_id_3', 'Plot Right', function_dict, multiple=False, selected='
|
| 205 |
),
|
| 206 |
ui.row(
|
| 207 |
ui.column(6, ui.input_select('split_id', 'Select Split', split_dict, multiple=False)),
|
|
@@ -562,6 +563,9 @@ def server(input, output, session):
|
|
| 562 |
|
| 563 |
if x == 'location_plot_rhb':
|
| 564 |
location_plot(df = df,ax=y,hand='R')
|
|
|
|
|
|
|
|
|
|
| 565 |
|
| 566 |
summary_table(df=df,
|
| 567 |
ax=ax_table)
|
|
|
|
| 46 |
'tj_stuff_roling_game':'Rolling tjStuff+ by Game',
|
| 47 |
'location_plot_lhb':'Locations vs LHB',
|
| 48 |
'location_plot_rhb':'Locations vs RHB',
|
| 49 |
+
'pitch_usage':'Pitch Usage',
|
| 50 |
}
|
| 51 |
|
| 52 |
|
|
|
|
| 201 |
# Rows for selecting plots and split options
|
| 202 |
ui.row(
|
| 203 |
ui.column(4, ui.input_select('plot_id_1', 'Plot Left', function_dict, multiple=False, selected='velocity_kdes')),
|
| 204 |
+
ui.column(4, ui.input_select('plot_id_2', 'Plot Middle', function_dict, multiple=False, selected='break_plot')),
|
| 205 |
+
ui.column(4, ui.input_select('plot_id_3', 'Plot Right', function_dict, multiple=False, selected='pitch_usage'))
|
| 206 |
),
|
| 207 |
ui.row(
|
| 208 |
ui.column(6, ui.input_select('split_id', 'Select Split', split_dict, multiple=False)),
|
|
|
|
| 563 |
|
| 564 |
if x == 'location_plot_rhb':
|
| 565 |
location_plot(df = df,ax=y,hand='R')
|
| 566 |
+
|
| 567 |
+
if x == 'pitch_usage':
|
| 568 |
+
pitch_usage(df = df,ax=y)
|
| 569 |
|
| 570 |
summary_table(df=df,
|
| 571 |
ax=ax_table)
|