import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha0.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha0.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha0.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], } ref_xerrs = [ [abs(xpoints['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 0.0, 0.0, 0.4005243902439024, 0.4039493902439024, 0.37811585365853667, 0.3564743902439023, 0.3416704268292685, 0.33230243902439016, 0.3326054878048779, 0.3379951219512198, 0.3566323170731706, 0.38967743902439006, 0.45582682926829254, 0.6182158536585364, 1.4952185975609782, 426.93749999999983, 0.0, 0.0, 0.0], '_alpha0.yoda' : [0.0, 0.0, 0.0, 0.4002378, 0.4032863, 0.3775848, 0.3569425, 0.3427265, 0.3341388, 0.3320848, 0.3382147, 0.3563725, 0.3893068, 0.4545412, 0.6198953, 1.495518, 426.9513, 0.0, 0.0, 0.0], } xerrs = { 'alpha0.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha0.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.033868973656749186, 0.03415702413471409, 0.03197042861876921, 0.030145206165969666, 0.028891904661466725, 0.0281078679065318, 0.02812884913180898, 0.028585985943390894, 0.030158220055443448, 0.0329534670931038, 0.03854540025380146, 0.05226599537705477, 0.12638837090656907, 36.082803303369104, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.033868973656749186, 0.03415702413471409, 0.03197042861876921, 0.030145206165969666, 0.028891904661466725, 0.0281078679065318, 0.02812884913180898, 0.028585985943390894, 0.030158220055443448, 0.0329534670931038, 0.03854540025380146, 0.05226599537705477, 0.12638837090656907, 36.082803303369104, 0.0, 0.0, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.0005888359, 0.0005910742, 0.0005719295, 0.0005560763, 0.0005448903, 0.0005380203, 0.0005363641, 0.0005412919, 0.0005556321, 0.0005807393, 0.0006275118, 0.0007328151, 0.001138233, 0.019232, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005888359, 0.0005910742, 0.0005719295, 0.0005560763, 0.0005448903, 0.0005380203, 0.0005363641, 0.0005412919, 0.0005556321, 0.0005807393, 0.0006275118, 0.0007328151, 0.001138233, 0.019232, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], '_alpha0.yoda' : [1.0, 1.0, 1.0, 0.9992844624425297, 0.9983584818793709, 0.9985955266001191, 1.0013131651779457, 1.0030909118489766, 1.0055261736296648, 0.998434518298798, 1.0006496485733658, 0.9992714707536802, 0.999048856856281, 0.9971795664806385, 1.0027166018657154, 1.0002002399110805, 1.0000323232323236, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.08456157597824296, 0.0845576821247094, 0.0845519390669099, 0.08456485792806631, 0.08456074155901092, 0.08458519892015826, 0.08457121173030883, 0.08457514350611393, 0.08456390128339338, 0.08456601227827622, 0.08456149962843508, 0.08454327896599563, 0.08452835666486197, 0.0845154227571228, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08456157597824296, 0.0845576821247094, 0.0845519390669099, 0.08456485792806631, 0.08456074155901092, 0.08458519892015826, 0.08457121173030883, 0.08457514350611393, 0.08456390128339338, 0.08456601227827622, 0.08456149962843508, 0.08454327896599563, 0.08452835666486197, 0.0845154227571228, 1.0, 1.0, 1.0], ], '_alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.0014701624029473557, 0.00146323825279972, 0.0015125774136846687, 0.0015599333787190957, 0.001594783326893784, 0.0016190681644696287, 0.0016126135005765645, 0.0016014784381359222, 0.001557997055791218, 0.0014903077310658762, 0.0013766451637067998, 0.0011853709277484187, 0.000761248557138536, 4.5046406089884364e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0014701624029473557, 0.00146323825279972, 0.0015125774136846687, 0.0015599333787190957, 0.001594783326893784, 0.0016190681644696287, 0.0016126135005765645, 0.0016014784381359222, 0.001557997055791218, 0.0014903077310658762, 0.0013766451637067998, 0.0011853709277484187, 0.000761248557138536, 4.5046406089884364e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }