Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,6 +313,8 @@ def server(input, output, session):
|
|
| 313 |
brush_opts_kwargs["direction"] = 'xy'
|
| 314 |
brush_opts_kwargs["delay"] = 60 # Optional: adds a small delay for better performance
|
| 315 |
brush_opts_kwargs["delay_type"] = "throttle"
|
|
|
|
|
|
|
| 316 |
|
| 317 |
|
| 318 |
return ui.output_plot('plot',
|
|
@@ -545,13 +547,13 @@ def server(input, output, session):
|
|
| 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 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
)
|
| 555 |
|
| 556 |
# #plt.rcParams["figure.figsize"] = [10,10]
|
| 557 |
# fig = plt.figure(figsize=(26,26))
|
|
|
|
| 313 |
brush_opts_kwargs["direction"] = 'xy'
|
| 314 |
brush_opts_kwargs["delay"] = 60 # Optional: adds a small delay for better performance
|
| 315 |
brush_opts_kwargs["delay_type"] = "throttle"
|
| 316 |
+
brush_opts_kwargs["clip"] = True
|
| 317 |
+
|
| 318 |
|
| 319 |
|
| 320 |
return ui.output_plot('plot',
|
|
|
|
| 547 |
plot_picker='short_form_movement',#plot_picker,
|
| 548 |
sport_id=sport_id)
|
| 549 |
|
| 550 |
+
# # Adjust the plot layout after creation
|
| 551 |
+
# plt.subplots_adjust(
|
| 552 |
+
# top=0.95, # Reduce top margin
|
| 553 |
+
# bottom=0.1, # Increase bottom margin
|
| 554 |
+
# left=0.1, # Increase left margin
|
| 555 |
+
# right=0.95 # Reduce right margin
|
| 556 |
+
# )
|
| 557 |
|
| 558 |
# #plt.rcParams["figure.figsize"] = [10,10]
|
| 559 |
# fig = plt.figure(figsize=(26,26))
|