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.011393, 12.3991, 14.05974, 15.34711, 16.41917, 17.31011, 18.02829, 18.61454, 19.56046, 19.56054, 18.61493, 18.02898, 17.31067, 16.42008, 15.34418, 14.05994, 12.39898, 2.012887, 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.001037352, 0.002575567, 0.002742625, 0.002865438, 0.002963831, 0.003043181, 0.003105668, 0.00315576, 0.003234948, 0.003234954, 0.003155793, 0.003105728, 0.00304323, 0.002963913, 0.002865165, 0.002742645, 0.002575555, 0.001037737, 0.0], [0.0, 0.001037352, 0.002575567, 0.002742625, 0.002865438, 0.002963831, 0.003043181, 0.003105668, 0.00315576, 0.003234948, 0.003234954, 0.003155793, 0.003105728, 0.00304323, 0.002963913, 0.002865165, 0.002742645, 0.002575555, 0.001037737, 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.998499580809186, 1.0003908749789217, 1.0004150821118891, 1.0002940231417086, 0.9995101041404245, 0.9999297835647786, 1.0003502158635238, 1.0002623222064044, 1.0000409887845443, 0.999555189559302, 0.999483458149248, 0.9993990991152666, 1.0006137462262814, 0.9995567449595251, 0.9999933281923372, 0.9993105518285205, 0.9997312638655521, 0.9997741433494911, 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.0005149642745856085, 0.0002078032861011554, 0.00019515036654853645, 0.00018676353431252733, 0.0001804219720890044, 0.00017579133342760075, 0.00017232669622024266, 0.0001695764615148203, 0.00016538877902598324, 0.00016530806709250473, 0.00016944264097921343, 0.00017215958780236366, 0.00017590871820260032, 0.00018042538347092226, 0.00018672525245208265, 0.00019493355508058588, 0.0002076673125777477, 0.0005154301360171091, 1.0], [1.0, 0.0005149642745856085, 0.0002078032861011554, 0.00019515036654853645, 0.00018676353431252733, 0.0001804219720890044, 0.00017579133342760075, 0.00017232669622024266, 0.0001695764615148203, 0.00016538877902598324, 0.00016530806709250473, 0.00016944264097921343, 0.00017215958780236366, 0.00017590871820260032, 0.00018042538347092226, 0.00018672525245208265, 0.00019493355508058588, 0.0002076673125777477, 0.0005154301360171091, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }