Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -342,7 +342,7 @@ def generate_track_video(year, typhoon, standard):
|
|
342 |
lon_padding = max((max_lon - min_lon) * 0.3, 5)
|
343 |
|
344 |
# Set up the figure with Gradio-friendly scale (1000x700 pixels at 100 DPI)
|
345 |
-
fig = plt.figure(figsize=(
|
346 |
ax = plt.axes([0.05, 0.05, 0.65, 0.9], projection=ccrs.PlateCarree()) # Map on left 65% of figure
|
347 |
ax.set_extent([min_lon - lon_padding, max_lon + lon_padding, min_lat - lat_padding, max_lat + lat_padding], crs=ccrs.PlateCarree())
|
348 |
|
|
|
342 |
lon_padding = max((max_lon - min_lon) * 0.3, 5)
|
343 |
|
344 |
# Set up the figure with Gradio-friendly scale (1000x700 pixels at 100 DPI)
|
345 |
+
fig = plt.figure(figsize=(20, 10), dpi=300) # 10x7 inches = 1000x700 pixels
|
346 |
ax = plt.axes([0.05, 0.05, 0.65, 0.9], projection=ccrs.PlateCarree()) # Map on left 65% of figure
|
347 |
ax.set_extent([min_lon - lon_padding, max_lon + lon_padding, min_lat - lat_padding, max_lat + lat_padding], crs=ccrs.PlateCarree())
|
348 |
|