import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha0.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha0.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha0.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 378.61424999999963, 963.9275, 852.5408333333334, 760.0169166666666, 683.4566666666666, 622.48075, 576.9413333333334, 546.7787500000001, 531.2668333333334, 531.1706666666666, 546.6940833333333, 577.1758333333333, 623.5866666666667, 684.3105, 760.8441666666666, 853.645, 965.9325, 379.6842499999996, 0.0], '_alpha0.yoda' : [0.0, 378.6909, 963.8807, 852.1975, 760.2569, 683.6864, 622.5316, 576.9353, 546.8895, 531.4416, 531.3871, 546.7545, 577.1677, 623.0039, 684.2483, 761.0508, 853.777, 965.9227, 379.6703, 0.0], } xerrs = { 'alpha0.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha0.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha0.yoda' : [ [0.0, 31.999327249872653, 81.46716704019819, 72.05329817418338, 64.23356361314889, 57.76309375371095, 52.609687004074324, 48.76098878999253, 46.21173341864115, 44.90072382490064, 44.89257238737334, 46.20456476968002, 48.780681228444436, 52.703191448800226, 57.83524252372232, 64.30362548099447, 72.14667255744446, 81.63652930316591, 32.0896314164629, 0.0], [0.0, 31.999327249872653, 81.46716704019819, 72.05329817418338, 64.23356361314889, 57.76309375371095, 52.609687004074324, 48.76098878999253, 46.21173341864115, 44.90072382490064, 44.89257238737334, 46.20456476968002, 48.780681228444436, 52.703191448800226, 57.83524252372232, 64.30362548099447, 72.14667255744446, 81.63652930316591, 32.0896314164629, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.09469433, 0.1510752, 0.1420534, 0.1341719, 0.127236, 0.1214122, 0.1168813, 0.1137971, 0.1121784, 0.1121727, 0.1137831, 0.1169049, 0.1214582, 0.1272883, 0.134242, 0.142185, 0.1512351, 0.09481671, 0.0], [0.0, 0.09469433, 0.1510752, 0.1420534, 0.1341719, 0.127236, 0.1214122, 0.1168813, 0.1137971, 0.1121784, 0.1121727, 0.1137831, 0.1169049, 0.1214582, 0.1272883, 0.134242, 0.142185, 0.1512351, 0.09481671, 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.0002024487984813, 0.9999514486307322, 0.999597282241613, 1.0003157605154185, 1.0003361344537818, 1.0000816892731221, 0.9999895425531421, 1.0002025499345026, 1.0003289621254354, 1.000407464769641, 1.000110512750199, 0.9999859083959105, 0.999065460026941, 0.999909105588764, 1.000271584303838, 1.0001546310234348, 0.9999898543635295, 0.9999632589447689, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451696482600082, 0.08451586560213106, 0.08451594968473657, 0.08451596563780288, 0.08451610258691497, 0.08451616697235108, 0.08451637276232452, 0.08451633026821388, 0.08451633154507224, 0.08451628676917403, 0.08451630661147638, 0.08451615333012806, 0.08451622567640994, 0.08451608228095626, 0.08451615757628135, 0.08451601374979584, 0.08451577030813842, 0.0845166251074753, 1.0], [1.0, 0.08451696482600082, 0.08451586560213106, 0.08451594968473657, 0.08451596563780288, 0.08451610258691497, 0.08451616697235108, 0.08451637276232452, 0.08451633026821388, 0.08451633154507224, 0.08451628676917403, 0.08451630661147638, 0.08451615333012806, 0.08451622567640994, 0.08451608228095626, 0.08451615757628135, 0.08451601374979584, 0.08451577030813842, 0.0845166251074753, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0002501076755563217, 0.00015672879962445307, 0.00016662357325993181, 0.00017653804416414858, 0.00018616542380155778, 0.00019504571024887116, 0.00020258784255360447, 0.00020812275531922187, 0.00021115265053562224, 0.00021118014800014057, 0.00020812937887718742, 0.00020254642216193506, 0.000194773567961684, 0.00018600956729437876, 0.00017643823253338123, 0.0001665622126293717, 0.00015656901491563853, 0.0002497251597873762, 1.0], [1.0, 0.0002501076755563217, 0.00015672879962445307, 0.00016662357325993181, 0.00017653804416414858, 0.00018616542380155778, 0.00019504571024887116, 0.00020258784255360447, 0.00020812275531922187, 0.00021115265053562224, 0.00021118014800014057, 0.00020812937887718742, 0.00020254642216193506, 0.000194773567961684, 0.00018600956729437876, 0.00017643823253338123, 0.0001665622126293717, 0.00015656901491563853, 0.0002497251597873762, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }