diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-04-30 17:09:41 -0500 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-04-30 17:09:41 -0500 |
| commit | a1ab1014c7b2d6be8beffa99b47a57b74b90b876 (patch) | |
| tree | 1e23941ed229ce83048e2f7a1a6826b894b623d4 /utils/plot.py | |
| parent | 975ecb72c295a4209615bedc6c06a2719af67f6c (diff) | |
| download | GolemFlavor-a1ab1014c7b2d6be8beffa99b47a57b74b90b876.tar.gz GolemFlavor-a1ab1014c7b2d6be8beffa99b47a57b74b90b876.zip | |
Mon Apr 30 17:09:40 CDT 2018
Diffstat (limited to 'utils/plot.py')
| -rw-r--r-- | utils/plot.py | 7 |
1 files changed, 4 insertions, 3 deletions
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)) |
