aboutsummaryrefslogtreecommitdiff
path: root/utils/plot-muons
diff options
context:
space:
mode:
Diffstat (limited to 'utils/plot-muons')
-rwxr-xr-xutils/plot-muons4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/plot-muons b/utils/plot-muons
index 5217299..59be494 100755
--- a/utils/plot-muons
+++ b/utils/plot-muons
@@ -273,7 +273,7 @@ if __name__ == '__main__':
a0.set_ylabel(r"Energy bias (\%)")
a0.legend()
a1.errorbar(T, dT['median']*100/T-dT_mc['median']*100/T, yerr=np.sqrt((dT['median_err']*100/T)**2+(dT_mc['median_err']*100/T)**2), color='C0')
- a1.axhline(mean,T[0],T[-1],ls='--',color='r')
+ a1.hlines(mean,T[0],T[-1],linestyles='--',color='r')
a1.set_ylim(0,25)
despine(ax=a1,trim=True)
a1.set_xlabel("Kinetic Energy (MeV)")
@@ -298,7 +298,7 @@ if __name__ == '__main__':
despine(ax=a0,trim=True)
a0.legend()
a1.errorbar(T, dT['iqr_std']*100/T-dT_mc['iqr_std']*100/T, yerr=np.sqrt((dT['iqr_std_err']*100/T)**2+(dT_mc['iqr_std_err']*100/T)**2), color='C0')
- a1.axhline(mean,T[0],T[-1],ls='--',color='r')
+ a1.hlines(mean,T[0],T[-1],linestyles='--',color='r')
despine(ax=a1,trim=True)
a1.set_xlabel("Kinetic Energy (MeV)")
a1.set_ylabel(r"Difference (\%)")