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, 382.79674999999963, 975.7108333333334, 863.3791666666667, 770.5290833333333, 693.663, 632.3290000000001, 586.1382500000001, 555.6585, 540.0676666666667, 540.5889999999999, 555.7526666666666, 586.6696666666668, 632.3425000000001, 694.4231666666667, 771.419, 864.6016666666667, 978.4708333333334, 384.13933333333296, 0.0], '_alpha0.yoda' : [0.0, 382.8421, 976.0232, 863.3152, 770.5462, 693.6542, 632.2353, 586.1256, 555.6379, 540.2715, 540.3094, 555.7937, 586.233, 632.6799, 694.298, 771.33, 865.1794, 978.0756, 384.1766, 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, 32.35278624442995, 82.46297148821807, 72.96925246674489, 65.12199555876306, 58.62562484860088, 53.441979181995954, 49.53829887627911, 46.9621966763339, 45.64457342700591, 45.68860482780265, 46.97011461202396, 49.58318627429173, 53.44320713513448, 58.689892419582975, 65.19738193448501, 73.07273298266294, 82.69638662669072, 32.46620037310595, 0.0], [0.0, 32.35278624442995, 82.46297148821807, 72.96925246674489, 65.12199555876306, 58.62562484860088, 53.441979181995954, 49.53829887627911, 46.9621966763339, 45.64457342700591, 45.68860482780265, 46.97011461202396, 49.58318627429173, 53.44320713513448, 58.689892419582975, 65.19738193448501, 73.07273298266294, 82.69638662669072, 32.46620037310595, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.09589001, 0.1531065, 0.1439953, 0.1360388, 0.1290729, 0.1232261, 0.1186476, 0.1155206, 0.113912, 0.113916, 0.1155368, 0.1186584, 0.1232695, 0.1291328, 0.136108, 0.1441506, 0.1532674, 0.09605699, 0.0], [0.0, 0.09589001, 0.1531065, 0.1439953, 0.1360388, 0.1290729, 0.1232261, 0.1186476, 0.1155206, 0.113912, 0.113916, 0.1155368, 0.1186584, 0.1232695, 0.1291328, 0.136108, 0.1441506, 0.1532674, 0.09605699, 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.0001184701803252, 1.000320142665219, 0.9999259112691893, 1.0000222141733996, 0.9999873137243876, 0.9998518176455611, 0.9999784180609266, 0.9999629268696509, 1.000377421841584, 0.9994827863682022, 1.0000738338037665, 0.9992556856243345, 1.0005335716008332, 0.9998197544772771, 0.9998846281981647, 1.0006682075175273, 0.9995960703989643, 1.0000970134100657, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451687806761678, 0.08451578958747313, 0.08451588280554012, 0.08451594750589198, 0.08451600395091115, 0.08451609712981051, 0.0845164069676038, 0.08451629314828064, 0.08451639719283184, 0.0845163420413709, 0.08451621994680601, 0.0845163625997794, 0.08451623469106453, 0.08451603465550132, 0.08451617335648333, 0.08451606768742786, 0.084515944481422, 0.08451673014419936, 1.0], [1.0, 0.08451687806761678, 0.08451578958747313, 0.08451588280554012, 0.08451594750589198, 0.08451600395091115, 0.08451609712981051, 0.0845164069676038, 0.08451629314828064, 0.08451639719283184, 0.0845163420413709, 0.08451621994680601, 0.0845163625997794, 0.08451623469106453, 0.08451603465550132, 0.08451617335648333, 0.08451606768742786, 0.084515944481422, 0.08451673014419936, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00025049849561157477, 0.00015691790515120173, 0.00016678106857261437, 0.00017655245329805308, 0.0001860743617577988, 0.00019487655951253222, 0.0002024225513349453, 0.00020789855639749953, 0.00021092171783412323, 0.00021072570844023837, 0.00020789247974818535, 0.00020225760209180744, 0.00019494103274728488, 0.0001859569297203266, 0.0001764384854404675, 0.00016672486944855144, 0.00015663972269655457, 0.00025005767872421315, 1.0], [1.0, 0.00025049849561157477, 0.00015691790515120173, 0.00016678106857261437, 0.00017655245329805308, 0.0001860743617577988, 0.00019487655951253222, 0.0002024225513349453, 0.00020789855639749953, 0.00021092171783412323, 0.00021072570844023837, 0.00020789247974818535, 0.00020225760209180744, 0.00019494103274728488, 0.0001859569297203266, 0.0001764384854404675, 0.00016672486944855144, 0.00015663972269655457, 0.00025005767872421315, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }