Spaces:
Running
Running
Update functions/PitchPlotFunctions.py
Browse files
functions/PitchPlotFunctions.py
CHANGED
|
@@ -544,12 +544,12 @@ 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.001, 5, 30, 7, 2, 0.001], width_ratios=[
|
| 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,
|
| 551 |
-
ax_bio = fig.add_subplot(gs[1,
|
| 552 |
-
ax_logo = fig.add_subplot(gs[1,
|
| 553 |
|
| 554 |
# Get the start and end dates and unique batter hands from the DataFrame
|
| 555 |
start_date = df['game_date'].min()
|
|
|
|
| 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=[8.001, 10, 10, 10, 8.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, 0])
|
| 551 |
+
ax_bio = fig.add_subplot(gs[1, 1:4])
|
| 552 |
+
ax_logo = fig.add_subplot(gs[1, 4])
|
| 553 |
|
| 554 |
# Get the start and end dates and unique batter hands from the DataFrame
|
| 555 |
start_date = df['game_date'].min()
|