Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -192,13 +192,9 @@ def server(input,output,session):
|
|
192 |
cbar = plt.colorbar(sm, cax=axfooter2, orientation='horizontal',shrink=1)
|
193 |
cbar.set_label('Decision Value xRV/100 Pitches',fontsize=12)
|
194 |
|
195 |
-
ax.
|
196 |
-
xmax= (math.ceil((df_model_2023_group_swing_plus_no['y_pred_swing'].max()**100100+0.01)/5))*5/100,
|
197 |
-
y=df_model_2023_group_swing_plus_no['y_pred_no_swing'].mean()*100,color='gray',linewidth=3,linestyle='dotted',alpha=0.4)
|
198 |
|
199 |
-
ax.
|
200 |
-
ymax= (math.ceil((df_model_2023_group_swing_plus_no['y_pred_no_swing'].max()*100*100+0.01)/5))*5/100,
|
201 |
-
x=df_model_2023_group_swing_plus_no['y_pred_swing'].mean()*100,color='gray',linewidth=3,linestyle='dotted',alpha=0.4)
|
202 |
|
203 |
x_lim_min = (math.floor((df_model_2023_group_swing_plus_no['y_pred_swing'].min()*100*100)/5))*5/100
|
204 |
x_lim_max = (math.ceil((df_model_2023_group_swing_plus_no['y_pred_swing'].max()*100*100)/5))*5/100
|
|
|
192 |
cbar = plt.colorbar(sm, cax=axfooter2, orientation='horizontal',shrink=1)
|
193 |
cbar.set_label('Decision Value xRV/100 Pitches',fontsize=12)
|
194 |
|
195 |
+
ax.axhline(y=df_model_2023_group_swing_plus_no['y_pred_no_swing'].mean()*100,color='gray',linewidth=3,linestyle='dotted',alpha=0.4)
|
|
|
|
|
196 |
|
197 |
+
ax.axvline(x=df_model_2023_group_swing_plus_no['y_pred_swing'].mean()*100,color='gray',linewidth=3,linestyle='dotted',alpha=0.4)
|
|
|
|
|
198 |
|
199 |
x_lim_min = (math.floor((df_model_2023_group_swing_plus_no['y_pred_swing'].min()*100*100)/5))*5/100
|
200 |
x_lim_max = (math.ceil((df_model_2023_group_swing_plus_no['y_pred_swing'].max()*100*100)/5))*5/100
|