From b22a8629a884b1a1fe3529ff8a3c9078ceee78bf Mon Sep 17 00:00:00 2001
From: Tooba Ali <alit1@myumanitoba.ca>
Date: Wed, 19 Apr 2023 19:53:23 +0000
Subject: [PATCH] Update benchmarks/dis/analysis/truth_reconstruction.py

---
 benchmarks/dis/analysis/truth_reconstruction.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/benchmarks/dis/analysis/truth_reconstruction.py b/benchmarks/dis/analysis/truth_reconstruction.py
index 4c61e785..e2363ed9 100644
--- a/benchmarks/dis/analysis/truth_reconstruction.py
+++ b/benchmarks/dis/analysis/truth_reconstruction.py
@@ -400,10 +400,10 @@ def particle_plots(boolean_particle):
     ax4.errorbar(-Y_error[1][0], Y_error[1][1], yerr=Y_error[1][3], xerr=Y_error[1][2] ,fmt='None', ecolor = 'orange', elinewidth = 1)
     for each_bin in range(len(Y_error[0][0])):
         if not np.isnan(Y_error[0][1][each_bin]):
-            ax3.text(x=-Y_error[0][0][each_bin]-0.1,y=0 - Y_error[0][4]*50,
+            ax3.text(x=-Y_error[0][0][each_bin]-0.1,y=y_limits[1] - Y_error[0][4]*10,
                     s= '\u03BC = %.3f\n\u03C3 = %.3f' % (Y_error[0][1][each_bin],Y_error[0][3][each_bin]),size=text_size)
         if not np.isnan(Y_error[1][1][each_bin]):
-            ax4.text(x=-Y_error[1][0][each_bin]-0.1,y=0 - Y_error[1][4]*50,
+            ax4.text(x=-Y_error[1][0][each_bin]-0.1,y=y_limits[1] - Y_error[0][4]*10,
                     s= '\u03BC = %.3f\n\u03C3 = %.3f' % (Y_error[1][1][each_bin],Y_error[1][3][each_bin]),size=text_size)
     if not np.isnan(Y_error[0][4]):
         ax1.set_ylim(0-(Y_error[1][4]*10),0+(Y_error[1][4]*10))
-- 
GitLab