nesticot commited on
Commit
92ee190
·
verified ·
1 Parent(s): bc2ba93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -315,7 +315,10 @@ def server(input, output, session):
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
 
@@ -542,6 +545,7 @@ def server(input, output, session):
542
 
543
  p.set(0.6, "Creating plot...")
544
 
 
545
 
546
  ploter.final_plot(
547
  df=df,
 
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
+ "brushOpts": {
320
+ "containment": "svg" # Constrain brush to the SVG area
321
+ }
322
  }
323
 
324
 
 
545
 
546
  p.set(0.6, "Creating plot...")
547
 
548
+ fig, ax = plt.subplots(figsize=(8, 8))
549
 
550
  ploter.final_plot(
551
  df=df,