nesticot commited on
Commit
c608907
1 Parent(s): 25c6bad

Update pitch_summary_functions.py

Browse files
Files changed (1) hide show
  1. pitch_summary_functions.py +2 -2
pitch_summary_functions.py CHANGED
@@ -777,7 +777,7 @@ def table_summary(df,
777
  table.set_fontsize(min_font_size)
778
  table.scale(1, 0.5)
779
 
780
- min_font_size = 20
781
  # Set font size for values
782
  # Adjust the font size as needed
783
  for i in range(len(plot_table)+1):
@@ -796,7 +796,7 @@ def table_summary(df,
796
  else:
797
  table.get_celld()[(i+1, 0)].set_text_props(color='#ffffff',fontweight='bold')
798
  if table.get_celld()[(i+1, 0)].get_text().get_text() == 'Four-Seam Fastball':
799
- table.get_celld()[(i+1, 0)].get_text().set_text('4-Seam Fastball')
800
 
801
  select_df = statcast_pitch_summary[statcast_pitch_summary['pitch_description'] == plot_table['pitch_description'].values[i]]
802
 
 
777
  table.set_fontsize(min_font_size)
778
  table.scale(1, 0.5)
779
 
780
+ min_font_size = 18
781
  # Set font size for values
782
  # Adjust the font size as needed
783
  for i in range(len(plot_table)+1):
 
796
  else:
797
  table.get_celld()[(i+1, 0)].set_text_props(color='#ffffff',fontweight='bold')
798
  if table.get_celld()[(i+1, 0)].get_text().get_text() == 'Four-Seam Fastball':
799
+ table.get_celld()[(i+1, 0)].get_text().set_text('4-Seam')
800
 
801
  select_df = statcast_pitch_summary[statcast_pitch_summary['pitch_description'] == plot_table['pitch_description'].values[i]]
802