nesticot commited on
Commit
69a89f0
·
verified ·
1 Parent(s): eef0b8e

Update functions/PitchPlotFunctions.py

Browse files
Files changed (1) hide show
  1. functions/PitchPlotFunctions.py +4 -1
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
- ax.imshow(img, extent=[0, 1, 0, 1], origin='upper')
 
 
 
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