Update app.py
Browse files
app.py
CHANGED
|
@@ -297,12 +297,13 @@ def server(input, output, session):
|
|
| 297 |
img = Image.open(BytesIO(response.content))
|
| 298 |
|
| 299 |
# Display the image on the axis
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
|
| 304 |
# Turn off the axis
|
| 305 |
-
|
|
|
|
| 306 |
else:
|
| 307 |
plot_logo(pitcher_id=player_input, ax=ax_logo, df_team=df_teams,df_players=scrape.get_players(sport_id,year_input))
|
| 308 |
|
|
|
|
| 297 |
img = Image.open(BytesIO(response.content))
|
| 298 |
|
| 299 |
# Display the image on the axis
|
| 300 |
+
ax_logo.set_xlim(0, 1.3)
|
| 301 |
+
ax_logo.set_ylim(0, 1)
|
| 302 |
+
ax_logo.imshow(img, extent=[0.3, 1.3, 0, 1], origin='upper')
|
| 303 |
|
| 304 |
# Turn off the axis
|
| 305 |
+
ax_logo.axis('off')
|
| 306 |
+
|
| 307 |
else:
|
| 308 |
plot_logo(pitcher_id=player_input, ax=ax_logo, df_team=df_teams,df_players=scrape.get_players(sport_id,year_input))
|
| 309 |
|