diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-09 22:24:00 -0600 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-09 22:24:00 -0600 |
| commit | 274a0cdf6d243bc3eb642b7d7bfa0eea8f0ea72e (patch) | |
| tree | 56f0c0dee95917c9ef55eed6ebdc70c8d63a03d5 /utils/plot.py | |
| parent | 198ecfe008d28c2dc6c39c1f405e2ffdc96c26ac (diff) | |
| download | GolemFlavor-274a0cdf6d243bc3eb642b7d7bfa0eea8f0ea72e.tar.gz GolemFlavor-274a0cdf6d243bc3eb642b7d7bfa0eea8f0ea72e.zip | |
Fri 9 Nov 22:24:00 CST 2018
Diffstat (limited to 'utils/plot.py')
| -rw-r--r-- | utils/plot.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/plot.py b/utils/plot.py index a73235b..53a4a84 100644 --- a/utils/plot.py +++ b/utils/plot.py @@ -196,10 +196,10 @@ def chainer_plot(infile, outfile, outformat, args, llh_paramset): # ) if args.data is DataType.REAL: - fig.text(0.8, 0.7, 'IceCube Preliminary', color='red', fontsize=15, + plt.text(0.8, 0.7, 'IceCube Preliminary', color='red', fontsize=15, ha='center', va='center') elif args.data in [DataType.ASIMOV, DataType.REALISATION]: - fig.text(0.8, 0.7, 'IceCube Simulation', color='red', fontsize=15, + plt.text(0.8, 0.7, 'IceCube Simulation', color='red', fontsize=15, ha='center', va='center') for of in outformat: @@ -247,14 +247,15 @@ def chainer_plot(infile, outfile, outformat, args, llh_paramset): g = plot_Tchain(Tchain, trns_axes_labels, trns_ranges) if args.data is DataType.REAL: - fig.text(0.8, 0.7, 'IceCube Preliminary', color='red', fontsize=15, + plt.text(0.8, 0.7, 'IceCube Preliminary', color='red', fontsize=15, ha='center', va='center') elif args.data in [DataType.ASIMOV, DataType.REALISATION]: - fig.text(0.8, 0.7, 'IceCube Simulation', color='red', fontsize=15, + plt.text(0.8, 0.7, 'IceCube Simulation', color='red', fontsize=15, ha='center', va='center') mpl.pyplot.figtext(0.5, 0.7, fig_text, fontsize=15) for of in outformat: + print 'Saving', outfile+'_elements'+of g.export(outfile+'_elements.'+of) @@ -281,6 +282,8 @@ def plot_statistic(data, outfile, outformat, args, scale_param, label=None): min_idx = np.argmin(scales) null = statistic[min_idx] + fig_text += '\nnull lnZ = {0:.2f}'.format(null) + if args.stat_method is StatCateg.BAYESIAN: reduced_ev = -(statistic - null) elif args.stat_method is StatCateg.FREQUENTIST: |
