Skip to content
Snippets Groups Projects
Commit 897c7a0c authored by Tooba Ali's avatar Tooba Ali
Browse files

define y_limits in truth_reconstruction.py for text location on plots

parent b22a8629
No related tags found
No related merge requests found
......@@ -398,6 +398,7 @@ def particle_plots(boolean_particle):
ax2.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)
ax3.errorbar(-Y_error[0][0], Y_error[0][1], yerr=Y_error[0][3], xerr=Y_error[0][2] ,fmt='None', ecolor = 'orange', elinewidth = 1)
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)
y_limits = ax3.get_ylim()
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=y_limits[1] - Y_error[0][4]*10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment