import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 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, 2.953165467625898, 16.90141007194246, 19.064082733812942, 20.798794964028783, 22.22386690647481, 23.391151079136694, 24.33618705035971, 25.062805755395683, 25.66634892086328, 25.6717805755396, 25.056205035971225, 24.34059352517985, 23.403615107913673, 22.214820143884882, 20.78962230215828, 19.078489208633087, 16.89474280575541, 2.955330935251798, 0.0], '_alpha1.yoda' : [0.0, 2.954135, 16.89652, 19.07248, 20.79605, 22.22725, 23.4074, 24.33438, 25.0565, 25.66402, 25.65753, 25.04972, 24.33703, 23.40129, 22.23378, 20.79328, 19.0761, 16.8996, 2.953616, 0.0], } xerrs = { 'alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.2495998557434763, 1.4284409992067924, 1.6112210082787402, 1.7578331055170207, 1.8782731553381329, 1.9769288056774457, 2.0567991773529655, 2.118207243252223, 2.1692161143601245, 2.169679095026419, 2.117652814896411, 2.0571734567930293, 1.9779814758755683, 1.877510051526252, 1.7570567238514923, 1.6124393120886704, 1.4278771201453098, 0.24978647524466663, 0.0], [0.0, 0.2495998557434763, 1.4284409992067924, 1.6112210082787402, 1.7578331055170207, 1.8782731553381329, 1.9769288056774457, 2.0567991773529655, 2.118207243252223, 2.1692161143601245, 2.169679095026419, 2.117652814896411, 2.0571734567930293, 1.9779814758755683, 1.877510051526252, 1.7570567238514923, 1.6124393120886704, 1.4278771201453098, 0.24978647524466663, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001460057, 0.003491832, 0.003709866, 0.00387387, 0.004004954, 0.0041099, 0.00419049, 0.004252212, 0.004303453, 0.004302908, 0.004251636, 0.004190719, 0.004109364, 0.004005542, 0.003873612, 0.003710218, 0.003492151, 0.001459929, 0.0], [0.0, 0.001460057, 0.003491832, 0.003709866, 0.00387387, 0.004004954, 0.0041099, 0.00419049, 0.004252212, 0.004303453, 0.004302908, 0.004251636, 0.004190719, 0.004109364, 0.004005542, 0.003873612, 0.003710218, 0.003492151, 0.001459929, 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.0003283027601164, 0.9997106707711577, 1.0004404757524559, 0.999868022929524, 1.000152227942123, 1.000694661019816, 0.9999257463646226, 0.9997484018566307, 0.9999092617001951, 0.9994448933724068, 0.999741180439659, 0.9998535974409922, 0.9999006517624327, 1.0008534778131137, 1.0001759386384494, 0.9998747695057528, 1.0002874973771685, 0.9994197146480815, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451942787484036, 0.08451608434601002, 0.08451605203228602, 0.08451610338758413, 0.08451603689144248, 0.08451609751863519, 0.08451608187826466, 0.08451596616616644, 0.08451595982928622, 0.08451611249333119, 0.08451610337065263, 0.0845161583535309, 0.08451606586226654, 0.08451610408572575, 0.08451604835885272, 0.08451609005596919, 0.08451606139034476, 0.08452064446155995, 1.0], [1.0, 0.08451942787484036, 0.08451608434601002, 0.08451605203228602, 0.08451610338758413, 0.08451603689144248, 0.08451609751863519, 0.08451608187826466, 0.08451596616616644, 0.08451595982928622, 0.08451611249333119, 0.08451610337065263, 0.0845161583535309, 0.08451606586226654, 0.08451610408572575, 0.08451604835885272, 0.08451609005596919, 0.08451606139034476, 0.08452064446155995, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0004944040610002683, 0.00020660004018225014, 0.0001945997639540249, 0.00018625454054909443, 0.00018020959254544386, 0.00017570319588358134, 0.00017219172384435057, 0.00016966224937064583, 0.00016766907569396724, 0.0001676123706082104, 0.0001696839562853297, 0.0001721699594409966, 0.0001755867194470509, 0.00018030944991029394, 0.0001863243085276186, 0.0001944712686327968, 0.00020670045351683925, 0.0004939984834137069, 1.0], [1.0, 0.0004944040610002683, 0.00020660004018225014, 0.0001945997639540249, 0.00018625454054909443, 0.00018020959254544386, 0.00017570319588358134, 0.00017219172384435057, 0.00016966224937064583, 0.00016766907569396724, 0.0001676123706082104, 0.0001696839562853297, 0.0001721699594409966, 0.0001755867194470509, 0.00018030944991029394, 0.0001863243085276186, 0.0001944712686327968, 0.00020670045351683925, 0.0004939984834137069, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }