Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,7 +220,7 @@ ui.card(
|
|
| 220 |
},
|
| 221 |
# Plot section with relative positioning for brush
|
| 222 |
ui.div(
|
| 223 |
-
|
| 224 |
ui.output_ui("plot_ui")
|
| 225 |
),
|
| 226 |
# Table section
|
|
@@ -545,6 +545,13 @@ def server(input, output, session):
|
|
| 545 |
plot_picker='short_form_movement',#plot_picker,
|
| 546 |
sport_id=sport_id)
|
| 547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 548 |
|
| 549 |
# #plt.rcParams["figure.figsize"] = [10,10]
|
| 550 |
# fig = plt.figure(figsize=(26,26))
|
|
|
|
| 220 |
},
|
| 221 |
# Plot section with relative positioning for brush
|
| 222 |
ui.div(
|
| 223 |
+
{"style": "position: relative;"},
|
| 224 |
ui.output_ui("plot_ui")
|
| 225 |
),
|
| 226 |
# Table section
|
|
|
|
| 545 |
plot_picker='short_form_movement',#plot_picker,
|
| 546 |
sport_id=sport_id)
|
| 547 |
|
| 548 |
+
# Adjust the plot layout after creation
|
| 549 |
+
plt.subplots_adjust(
|
| 550 |
+
top=0.95, # Reduce top margin
|
| 551 |
+
bottom=0.1, # Increase bottom margin
|
| 552 |
+
left=0.1, # Increase left margin
|
| 553 |
+
right=0.95 # Reduce right margin
|
| 554 |
+
)
|
| 555 |
|
| 556 |
# #plt.rcParams["figure.figsize"] = [10,10]
|
| 557 |
# fig = plt.figure(figsize=(26,26))
|