nesticot commited on
Commit
1c5040c
·
verified ·
1 Parent(s): 2fb71ec

Update functions/PitchPlotFunctions.py

Browse files
Files changed (1) hide show
  1. functions/PitchPlotFunctions.py +6 -6
functions/PitchPlotFunctions.py CHANGED
@@ -616,12 +616,12 @@ class PitchPlotFunctions:
616
  ax_footer.axis('off')
617
  ax_legend.axis('off')
618
  # Add clip path to constrain brush
619
- for ax in fig.get_axes():
620
- if ax.get_xlabel() == 'Horizontal Break (in)': # Identify the main plot
621
- ax.set_clip_on(True)
622
- ax.patch.set_clip_on(True)
623
- for artist in ax.get_children():
624
- artist.set_clip_on(True)
625
  # Adjust layout and show the figure
626
  # fig.tight_layout()
627
  fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
 
616
  ax_footer.axis('off')
617
  ax_legend.axis('off')
618
  # Add clip path to constrain brush
619
+
620
+ ax_main_plot.set_clip_on(True)
621
+ ax_main_plot.patch.set_clip_on(True)
622
+ for artist in ax_main_plot.get_children():
623
+ artist.set_clip_on(True)
624
+
625
  # Adjust layout and show the figure
626
  # fig.tight_layout()
627
  fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)