Update functions/PitchPlotFunctions.py
Browse files543 unmodified lines544545546547548549550551552553554555543 unmodified lines# Create a figure and a gridspec with 6 rows and 5 columnsfig = plt.figure(figsize=(9, 9))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])gs.update(hspace=0.1, wspace=0.1)# Create subplots for player headshot, bio, and logoax_headshot = fig.add_subplot(gs[1, 1])ax_bio = fig.add_subplot(gs[1, 2])ax_logo = fig.add_subplot(gs[1, 3])# Get the start and end dates and unique batter hands from the DataFramestart_date = df['game_date'].min()543 unmodified lines544545546547548549550551552553554555543 unmodified lines# Create a figure and a gridspec with 6 rows and 5 columnsfig = plt.figure(figsize=(9, 9))gs = gridspec.GridSpec(6, 5, figure=fig, height_ratios=[0.001, 5, 30, 7, 2, 0.001], width_ratios=[8.001, 10, 10, 10, 8.001])gs.update(hspace=0.1, wspace=0.1)# Create subplots for player headshot, bio, and logoax_headshot = fig.add_subplot(gs[1, 0])ax_bio = fig.add_subplot(gs[1, 1:4])ax_logo = fig.add_subplot(gs[1, 4])# Get the start and end dates and unique batter hands from the DataFramestart_date = df['game_date'].min()
functions/PitchPlotFunctions.py+4-4