nesticot commited on
Commit
f716003
·
verified ·
1 Parent(s): a8b7eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -543,7 +543,7 @@ def server(input, output, session):
543
 
544
  p.set(0.6, "Creating plot...")
545
 
546
- fig, ax = plt.subplots(figsize=(8, 8))
547
 
548
  ploter.final_plot(
549
  df=df,
@@ -552,13 +552,7 @@ def server(input, output, session):
552
  sport_id=sport_id)
553
 
554
 
555
- # Add clip path to constrain brush
556
- for ax in fig.get_axes():
557
- if ax.get_xlabel() == 'Horizontal Break (in)': # Identify the main plot
558
- ax.set_clip_on(True)
559
- ax.patch.set_clip_on(True)
560
- for artist in ax.get_children():
561
- artist.set_clip_on(True)
562
  # # Adjust the plot layout after creation
563
  # plt.subplots_adjust(
564
  # top=0.95, # Reduce top margin
 
543
 
544
  p.set(0.6, "Creating plot...")
545
 
546
+ # fig, ax = plt.subplots(figsize=(8, 8))
547
 
548
  ploter.final_plot(
549
  df=df,
 
552
  sport_id=sport_id)
553
 
554
 
555
+
 
 
 
 
 
 
556
  # # Adjust the plot layout after creation
557
  # plt.subplots_adjust(
558
  # top=0.95, # Reduce top margin