Spaces:
Running
Running
Update functions/PitchPlotFunctions.py
Browse files
functions/PitchPlotFunctions.py
CHANGED
|
@@ -164,7 +164,7 @@ class PitchPlotFunctions:
|
|
| 164 |
# Display the image on the axis
|
| 165 |
ax.set_xlim(0, 2)
|
| 166 |
ax.set_ylim(0, 1)
|
| 167 |
-
ax.imshow(img, extent=[
|
| 168 |
# Turn off the axis
|
| 169 |
ax.axis('off')
|
| 170 |
|
|
@@ -239,7 +239,7 @@ class PitchPlotFunctions:
|
|
| 239 |
# Display the image on the axis
|
| 240 |
ax.set_xlim(0, 2)
|
| 241 |
ax.set_ylim(0, 1)
|
| 242 |
-
ax.imshow(img, extent=[
|
| 243 |
# Turn off the axis
|
| 244 |
ax.axis('off')
|
| 245 |
|
|
@@ -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.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, 0])
|
|
|
|
| 164 |
# Display the image on the axis
|
| 165 |
ax.set_xlim(0, 2)
|
| 166 |
ax.set_ylim(0, 1)
|
| 167 |
+
ax.imshow(img, extent=[1, 2, 0, 1], origin='upper')
|
| 168 |
# Turn off the axis
|
| 169 |
ax.axis('off')
|
| 170 |
|
|
|
|
| 239 |
# Display the image on the axis
|
| 240 |
ax.set_xlim(0, 2)
|
| 241 |
ax.set_ylim(0, 1)
|
| 242 |
+
ax.imshow(img, extent=[0, 1, 0, 1], origin='upper')
|
| 243 |
# Turn off the axis
|
| 244 |
ax.axis('off')
|
| 245 |
|
|
|
|
| 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=[10.001, 10, 10, 10, 10.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])
|