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, 4.024293165467625, 21.293507194244626, 19.60465827338129, 17.768717625899285, 16.130838129496397, 14.788438848920867, 13.778557553956832, 13.137224820143885, 12.92917625899279, 12.94285251798563, 13.148417266187051, 13.79663309352518, 14.79985971223022, 16.147183453237403, 17.77754136690648, 19.597212230215817, 21.18710431654678, 3.9522014388489195, 0.0], '_alpha1.yoda' : [0.0, 4.02894, 21.29638, 19.61635, 17.76008, 16.13278, 14.78248, 13.7755, 13.13484, 12.93328, 12.93854, 13.14745, 13.79687, 14.79925, 16.14697, 17.77911, 19.60669, 21.18371, 3.952075, 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.3401287900337814, 1.7996381667389953, 1.6569082928254675, 1.5017400798504459, 1.3633142166918402, 1.2498610243119828, 1.164513692781647, 1.1103100834654522, 1.0927269248969758, 1.0938801014328552, 1.1112540738672265, 1.16604022149628, 1.2508271938225373, 1.364695414497005, 1.5024881025889714, 1.6562788415458096, 1.7906497762803588, 0.33403168999174493, 0.0], [0.0, 0.3401287900337814, 1.7996381667389953, 1.6569082928254675, 1.5017400798504459, 1.3633142166918402, 1.2498610243119828, 1.164513692781647, 1.1103100834654522, 1.0927269248969758, 1.0938801014328552, 1.1112540738672265, 1.16604022149628, 1.2508271938225373, 1.364695414497005, 1.5024881025889714, 1.6562788415458096, 1.7906497762803588, 0.33403168999174493, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001466265, 0.003371088, 0.003235387, 0.003078503, 0.002934078, 0.002808606, 0.002711258, 0.00264746, 0.002627069, 0.002627603, 0.002648731, 0.00271336, 0.002810198, 0.002935369, 0.003080152, 0.00323459, 0.003362158, 0.001452211, 0.0], [0.0, 0.001466265, 0.003371088, 0.003235387, 0.003078503, 0.002934078, 0.002808606, 0.002711258, 0.00264746, 0.002627069, 0.002627603, 0.002648731, 0.00271336, 0.002810198, 0.002935369, 0.003080152, 0.00323459, 0.003362158, 0.001452211, 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.001154695828885, 1.0001349146352063, 1.000596374925575, 0.9995138858030646, 1.0001203824927145, 0.9995970603130091, 0.9997780933203742, 0.9998184684987481, 1.000317401582669, 0.9996668031270821, 0.999926434781657, 1.0000171713252946, 0.999958802837184, 0.9999867807758535, 1.0000882367848931, 1.0004836284708685, 0.9998397932772659, 0.999968007994816, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451888966549938, 0.08451581744248385, 0.08451605071204815, 0.08451595165548374, 0.08451601868094641, 0.08451608970227353, 0.08451637177704643, 0.08451633420804103, 0.08451636074935075, 0.08451615282742185, 0.08451618558873758, 0.08451628840108154, 0.08451615205439321, 0.08451600357729215, 0.08451607967488159, 0.08451604351113208, 0.0845160220824462, 0.08451788077103474, 1.0], [1.0, 0.08451888966549938, 0.08451581744248385, 0.08451605071204815, 0.08451595165548374, 0.08451601868094641, 0.08451608970227353, 0.08451637177704643, 0.08451633420804103, 0.08451636074935075, 0.08451615282742185, 0.08451618558873758, 0.08451628840108154, 0.08451615205439321, 0.08451600357729215, 0.08451607967488159, 0.08451604351113208, 0.0845160220824462, 0.08451788077103474, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0003643534254864902, 0.0001583153009623123, 0.00016503154275292455, 0.0001732540898456759, 0.00018189247058618906, 0.00018991903261005456, 0.00019677371810385182, 0.00020152353607746234, 0.00020318920149091187, 0.00020301575687033704, 0.00020144865700387932, 0.00019666827273049625, 0.00018988004309782242, 0.00018178829815743985, 0.00017326085404215747, 0.0001650535781315248, 0.00015868888687040682, 0.0003674435684692623, 1.0], [1.0, 0.0003643534254864902, 0.0001583153009623123, 0.00016503154275292455, 0.0001732540898456759, 0.00018189247058618906, 0.00018991903261005456, 0.00019677371810385182, 0.00020152353607746234, 0.00020318920149091187, 0.00020301575687033704, 0.00020144865700387932, 0.00019666827273049625, 0.00018988004309782242, 0.00018178829815743985, 0.00017326085404215747, 0.0001650535781315248, 0.00015868888687040682, 0.0003674435684692623, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }