From a1ab1014c7b2d6be8beffa99b47a57b74b90b876 Mon Sep 17 00:00:00 2001 From: shivesh Date: Mon, 30 Apr 2018 17:09:41 -0500 Subject: Mon Apr 30 17:09:40 CDT 2018 --- utils/plot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'utils/plot.py') diff --git a/utils/plot.py b/utils/plot.py index 0160da4..3d94cc1 100644 --- a/utils/plot.py +++ b/utils/plot.py @@ -131,9 +131,10 @@ def gen_figtext(args): if args.likelihood is Likelihood.GAUSSIAN: t += '\nSigma = {0:.3f}'.format(args.sigma_ratio) if args.energy_dependance is EnergyDependance.SPECTRAL: - t += '\nSpectral Index = {0}\nBinning = [{1}, {2}] TeV - {3} bins'.format( - int(args.spectral_index), int(args.binning[0]/1e3), - int(args.binning[-1]/1e3), len(args.binning)-1 + if not args.fold_index: + t += '\nSpectral Index = {0}'.format(int(args.spectral_index)) + t += '\nBinning = [{0}, {1}] TeV - {2} bins'.format( + int(args.binning[0]/1e3), int(args.binning[-1]/1e3), len(args.binning)-1 ) elif args.energy_dependance is EnergyDependance.MONO: t += '\nEnergy = {0} TeV'.format(int(args.energy/1e3)) -- cgit v1.2.3