Skip to content
Snippets Groups Projects
Commit e99b5c11 authored by Craig Cahillane's avatar Craig Cahillane :basketball:
Browse files

Added_Error_Bars_Fixed

git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/branches/craig@142 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent 36e1568b
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,7 @@ for line in infile:
infile.close()
# evidence.dat contains variance, not std
sig_noise_std = (sig_noise_var + sig_signal_var)**(0.5)
sig_gl_std = (sig_gl_var + sig_signal_val)**(0.5)
sig_gl_std = (sig_gl_var + sig_signal_var)**(0.5)
print
print ' log( E_signal / E_noise ) =', sig_noise, '+- 2 *', sig_noise_std
print ' log( E_signal / E_glitch ) =', sig_gl, '+- 2 *', sig_gl_std
......@@ -282,7 +282,7 @@ print ' log( E_signal / E_glitch ) =', sig_gl, '+- 2 *', sig_gl_std
plt.figure()
# plt.plot(limit_odds(sig_gl), limit_odds(sig_noise), '*', markersize=15, mfc='yellow')
plt.plot(sig_gl, sig_noise, '*', markersize=15, mfc='yellow')
plt.errorbar(sig_gl, sig_noise, 2*(sig_noise_std**2+sig_signal_std**2)**(0.5), 2*sig_gl_std, markersize=15,color='yellow',elinewidth=2)
plt.errorbar(sig_gl, sig_noise, 2*sig_noise_std, 2*sig_gl_std, markersize=15,color='yellow',elinewidth=2)
plt.ylabel('log( E_signal / E_noise )')
plt.xlabel('log( E_signal / E_glitch )')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment