Update functions/PitchPlotFunctions.py
Browse files
functions/PitchPlotFunctions.py
CHANGED
|
@@ -172,7 +172,10 @@ class PitchPlotFunctions:
|
|
| 172 |
# Display the image on the axis
|
| 173 |
ax.set_xlim(0, 1)
|
| 174 |
ax.set_ylim(0, 1)
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
| 176 |
# Turn off the axis
|
| 177 |
ax.axis('off')
|
| 178 |
|
|
|
|
| 172 |
# Display the image on the axis
|
| 173 |
ax.set_xlim(0, 1)
|
| 174 |
ax.set_ylim(0, 1)
|
| 175 |
+
if sport_id == 1:
|
| 176 |
+
ax.imshow(img, extent=[0, 1, 0, 1], origin='upper')
|
| 177 |
+
else:
|
| 178 |
+
ax.imshow(img, extent=[1/6, 5/6, 0, 1], origin='upper')
|
| 179 |
# Turn off the axis
|
| 180 |
ax.axis('off')
|
| 181 |
|