import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 2.0144154676258985, 12.394255395683464, 14.053906474820138, 15.342598920863313, 16.427217625899274, 17.311325539568347, 18.021978417266187, 18.609658273381296, 19.55965827338127, 19.569244604316573, 18.62455035971223, 18.039820143884892, 17.300052158273385, 16.42736151079136, 15.344282374100723, 14.069640287769777, 12.402312949640299, 2.013341726618704, 0.0], '_alpha3.yoda' : [0.0, 2.013145, 12.39904, 14.05983, 15.3443, 16.42103, 17.31034, 18.02879, 18.61505, 19.55978, 19.55962, 18.61395, 18.0301, 17.3099, 16.41996, 15.3466, 14.05891, 12.39995, 2.010795, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.13004258816761693, 0.8000599632695499, 0.9071911067443832, 0.9903774977838287, 1.0603926688654697, 1.1174615449007963, 1.163339745246167, 1.2012675964624395, 1.262588518927659, 1.2632092805450557, 1.2022309778289488, 1.1644868864041427, 1.1167345701187632, 1.0604004478388935, 0.9904854415209314, 0.9082044635154013, 0.8005795510866717, 0.12997223479540268, 0.0], [0.0, 0.13004258816761693, 0.8000599632695499, 0.9071911067443832, 0.9903774977838287, 1.0603926688654697, 1.1174615449007963, 1.163339745246167, 1.2012675964624395, 1.262588518927659, 1.2632092805450557, 1.2022309778289488, 1.1644868864041427, 1.1167345701187632, 1.0604004478388935, 0.9904854415209314, 0.9082044635154013, 0.8005795510866717, 0.12997223479540268, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037804, 0.002575561, 0.002742634, 0.002865176, 0.002963998, 0.003043201, 0.003105711, 0.003155803, 0.003234892, 0.003234879, 0.00315571, 0.003105824, 0.003043162, 0.002963902, 0.002865391, 0.002742544, 0.002575655, 0.001037198, 0.0], [0.0, 0.001037804, 0.002575561, 0.002742634, 0.002865176, 0.002963998, 0.003043201, 0.003105711, 0.003155803, 0.003234892, 0.003234879, 0.00315571, 0.003105824, 0.003043162, 0.002963902, 0.002865391, 0.002742544, 0.002575655, 0.001037198, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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], '_alpha3.yoda' : [1.0, 0.999369312018143, 1.000386034026554, 1.0004214860252894, 1.0001108729456765, 0.9996233308622198, 0.9999430696646484, 1.0003779597653546, 1.0002897273308031, 1.0000062233509925, 0.9995081770139226, 0.9994308394292749, 0.9994611839914498, 1.0005692376899513, 0.9995494400737149, 1.000151041661172, 0.9992373445553469, 0.9998094750834063, 0.9987350748335301, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455599167974986, 0.06455086955430868, 0.06455081427856117, 0.06455083020107398, 0.06455096005994629, 0.06455089428863342, 0.06455116737525411, 0.06455076062200976, 0.06455064302661745, 0.06455074307091126, 0.06455087261755105, 0.06455091442798438, 0.06455093660424073, 0.06455086820499456, 0.06455078298042469, 0.0645506526776573, 0.06455082647385467, 0.06455547663718461, 1.0], [1.0, 0.06455599167974986, 0.06455086955430868, 0.06455081427856117, 0.06455083020107398, 0.06455096005994629, 0.06455089428863342, 0.06455116737525411, 0.06455076062200976, 0.06455064302661745, 0.06455074307091126, 0.06455087261755105, 0.06455091442798438, 0.06455093660424073, 0.06455086820499456, 0.06455078298042469, 0.0645506526776573, 0.06455082647385467, 0.06455547663718461, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0005151886572947686, 0.00020780280200591867, 0.00019515100693987648, 0.0001867464576750325, 0.00018043213814413332, 0.00017579248874063293, 0.00017232908219580012, 0.00016957877214295586, 0.00016538591599027898, 0.00016530423454804444, 0.00016943818449578716, 0.0001721649093631794, 0.0001759047875786127, 0.00018042471385638966, 0.0001867399810652879, 0.00019492637650331352, 0.0002076753755898976, 0.0005151624219013812, 1.0], [1.0, 0.0005151886572947686, 0.00020780280200591867, 0.00019515100693987648, 0.0001867464576750325, 0.00018043213814413332, 0.00017579248874063293, 0.00017232908219580012, 0.00016957877214295586, 0.00016538591599027898, 0.00016530423454804444, 0.00016943818449578716, 0.0001721649093631794, 0.0001759047875786127, 0.00018042471385638966, 0.0001867399810652879, 0.00019492637650331352, 0.0002076753755898976, 0.0005151624219013812, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }