import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 0.0, 0.0, 0.338320731707317, 0.5177088414634147, 0.6033454268292684, 0.6876350609756096, 0.7947832317073176, 0.9336740853658533, 1.123309146341463, 1.3811689024390255, 1.765297560975609, 2.3393493902439015, 3.2966981707317062, 5.178271341463413, 10.511515243902458, 422.7948170731706, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.3372327, 0.518417, 0.6028147, 0.6896484, 0.7946176, 0.9343632, 1.121256, 1.384062, 1.761823, 2.34133, 3.298508, 5.177585, 10.50696, 422.8091, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.028614993516616047, 0.043774075554605614, 0.051013960366651644, 0.05813340093000132, 0.06719196104955352, 0.07892805734445099, 0.09495565220085607, 0.11675057975568999, 0.1492110049680294, 0.1977283758936775, 0.2786437592815521, 0.43766271300732285, 0.8884037530512002, 35.73269581584486, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.028614993516616047, 0.043774075554605614, 0.051013960366651644, 0.05813340093000132, 0.06719196104955352, 0.07892805734445099, 0.09495565220085607, 0.11675057975568999, 0.1492110049680294, 0.1977283758936775, 0.2786437592815521, 0.43766271300732285, 0.8884037530512002, 35.73269581584486, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.0005523094, 0.0006847897, 0.0007384303, 0.0007898261, 0.0008478063, 0.0009193385, 0.001007094, 0.001118911, 0.001262405, 0.001455288, 0.001727334, 0.002164119, 0.003082877, 0.01955644, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005523094, 0.0006847897, 0.0007384303, 0.0007898261, 0.0008478063, 0.0009193385, 0.001007094, 0.001118911, 0.001262405, 0.001455288, 0.001727334, 0.002164119, 0.003082877, 0.01955644, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 1.0, 1.0, 0.9967840229541172, 1.0013678702774007, 0.9991203599038491, 1.002927917930092, 0.999791601406887, 1.0007380676458173, 0.9981722339320837, 1.002094673255288, 0.9980317420403114, 1.0008466498268103, 1.0005489823983165, 0.9998674574161618, 0.9995666425061694, 1.00003378217105, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08457948578028916, 0.08455346335378171, 0.08455183067309022, 0.08454106579080224, 0.08454124139636764, 0.08453491275119157, 0.08453207428259601, 0.08453026965023504, 0.08452456303489507, 0.08452280651974875, 0.08452207173691814, 0.08451907676271683, 0.08451719209241002, 0.08451545376834839, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457948578028916, 0.08455346335378171, 0.08455183067309022, 0.08454106579080224, 0.08454124139636764, 0.08453491275119157, 0.08453207428259601, 0.08453026965023504, 0.08452456303489507, 0.08452280651974875, 0.08452207173691814, 0.08451907676271683, 0.08451719209241002, 0.08451545376834839, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.0016325023808408101, 0.001322731321459173, 0.0012238930920229834, 0.0011486123160727186, 0.001066713873893364, 0.000984646049847002, 0.0008965421525143213, 0.0008101188768615478, 0.0007151230636167194, 0.0006220909138537322, 0.0005239587946920285, 0.00041792305912428414, 0.00029328568988075453, 4.625515548033666e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0016325023808408101, 0.001322731321459173, 0.0012238930920229834, 0.0011486123160727186, 0.001066713873893364, 0.000984646049847002, 0.0008965421525143213, 0.0008101188768615478, 0.0007151230636167194, 0.0006220909138537322, 0.0005239587946920285, 0.00041792305912428414, 0.00029328568988075453, 4.625515548033666e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }