Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -309,13 +309,15 @@ def server(input, output, session):
|
|
| 309 |
@render.ui
|
| 310 |
@reactive.event(input.generate_plot)
|
| 311 |
def plot_ui():
|
| 312 |
-
brush_opts_kwargs = {
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
|
|
|
|
|
|
| 319 |
|
| 320 |
return ui.output_plot('plot',
|
| 321 |
width='800px',
|
|
|
|
| 309 |
@render.ui
|
| 310 |
@reactive.event(input.generate_plot)
|
| 311 |
def plot_ui():
|
| 312 |
+
brush_opts_kwargs = {
|
| 313 |
+
"direction": 'xy',
|
| 314 |
+
"delay": 60,
|
| 315 |
+
"delay_type": "throttle",
|
| 316 |
+
"clip": True, # This helps constrain the brush to the plot area
|
| 317 |
+
"fill": "#00000033", # Optional: sets a semi-transparent fill
|
| 318 |
+
"stroke": "#000000" # Optional: sets the brush border color
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
|
| 322 |
return ui.output_plot('plot',
|
| 323 |
width='800px',
|