nesticot commited on
Commit
ae2dabb
·
verified ·
1 Parent(s): 6850181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
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
- 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',
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',