nesticot commited on
Commit
ba47691
·
verified ·
1 Parent(s): ebf89d8

Update functions/PitchPlotFunctions.py

Browse files
Files changed (1) hide show
  1. functions/PitchPlotFunctions.py +7 -7
functions/PitchPlotFunctions.py CHANGED
@@ -544,7 +544,7 @@ class PitchPlotFunctions:
544
 
545
  # Create a figure and a gridspec with 6 rows and 5 columns
546
  fig = plt.figure(figsize=(9, 9))
547
- gs = gridspec.GridSpec(6, 5, figure=fig, height_ratios=[0.00000000005, 5, 30, 7, 2, 0.00000000005], width_ratios=[1, 10, 10, 10, 1])
548
  gs.update(hspace=0.1, wspace=0.1)
549
  # Create subplots for player headshot, bio, and logo
550
  ax_headshot = fig.add_subplot(gs[1, 1])
@@ -572,12 +572,12 @@ class PitchPlotFunctions:
572
  ax_footer = fig.add_subplot(gs[-2, :])
573
 
574
  # Plot the selected pitch movement plot
575
- if plot_picker == 'short_form_movement':
576
- self.break_plot_big(df, ax_main_plot, sport_id=sport_id)
577
- elif plot_picker == 'long_form_movement':
578
- self.break_plot_big_long(df, ax_main_plot, sport_id=sport_id)
579
- elif plot_picker == 'release_point':
580
- self.release_point_plot(df, ax_main_plot, sport_id=sport_id)
581
 
582
  # Sort the DataFrame and get unique pitch types
583
  items_in_order = list(df.sort(by=['prop', 'pitch_type'], descending=[True, True])['pitch_type'].unique(maintain_order=True))
 
544
 
545
  # Create a figure and a gridspec with 6 rows and 5 columns
546
  fig = plt.figure(figsize=(9, 9))
547
+ gs = gridspec.GridSpec(6, 5, figure=fig, height_ratios=[0.001, 5, 30, 7, 2, 0.001], width_ratios=[7.001, 10, 10, 10, 7.001])
548
  gs.update(hspace=0.1, wspace=0.1)
549
  # Create subplots for player headshot, bio, and logo
550
  ax_headshot = fig.add_subplot(gs[1, 1])
 
572
  ax_footer = fig.add_subplot(gs[-2, :])
573
 
574
  # Plot the selected pitch movement plot
575
+ # if plot_picker == 'short_form_movement':
576
+ # self.break_plot_big(df, ax_main_plot, sport_id=sport_id)
577
+ # elif plot_picker == 'long_form_movement':
578
+ # self.break_plot_big_long(df, ax_main_plot, sport_id=sport_id)
579
+ # elif plot_picker == 'release_point':
580
+ # self.release_point_plot(df, ax_main_plot, sport_id=sport_id)
581
 
582
  # Sort the DataFrame and get unique pitch types
583
  items_in_order = list(df.sort(by=['prop', 'pitch_type'], descending=[True, True])['pitch_type'].unique(maintain_order=True))