import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [0.01375, 0.04125, 0.06875, 0.09625, 0.12375, 0.15125, 0.17875000000000002, 0.20625, 0.23375, 0.26125, 0.28875, 0.31625000000000003, 0.34375, 0.37124999999999997, 0.39875, 0.42625, 0.45375, 0.48125, 0.50875, 0.53625, 0.56375, 0.59125, 0.6187499999999999, 0.64625, 0.6737500000000001, 0.7012499999999999, 0.72875, 0.7562500000000001, 0.78375, 0.81125, 0.83875, 0.86625, 0.89375, 0.92125, 0.94875, 0.9762500000000001, 1.0037500000000001, 1.03125, 1.0587499999999999, 1.0862500000000002], } xedges = { 'alpha3.yoda' : [0.0, 0.0275, 0.055, 0.0825, 0.11, 0.1375, 0.165, 0.1925, 0.22, 0.2475, 0.275, 0.3025, 0.33, 0.3575, 0.385, 0.4125, 0.44, 0.4675, 0.495, 0.5225, 0.55, 0.5775, 0.605, 0.6325, 0.66, 0.6875, 0.715, 0.7425, 0.77, 0.7975, 0.825, 0.8525, 0.88, 0.9075, 0.935, 0.9625, 0.99, 1.0175, 1.045, 1.0725, 1.1], } 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' : [61875.96363636363, 2449.328363636364, 1433.9996363636362, 1008.8414545454547, 771.8345454545452, 619.7032727272729, 514.165090909091, 436.46545454545463, 375.1538181818182, 328.5263636363634, 290.25760000000037, 258.1701818181816, 232.68178181818206, 210.21178181818163, 190.9646909090911, 174.30178181818167, 159.20818181818166, 146.3276727272729, 135.0284363636365, 125.42650909090872, 116.12847272727285, 108.22370909090921, 101.20014545454558, 94.18876363636336, 88.50843636363646, 82.80534545454555, 77.71429090909068, 73.2584727272728, 69.1969818181819, 64.72309090909098, 61.47443636363619, 57.401600000000066, 54.48360000000007, 50.821599999999854, 46.79978181818187, 41.447236363636414, 11.473312727272695, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.yoda' : [ [0.01375, 0.013749999999999998, 0.013749999999999998, 0.013749999999999998, 0.013750000000000012, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151, 0.013749999999999929], [0.01375, 0.013750000000000002, 0.013750000000000005, 0.013749999999999998, 0.013749999999999998, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013750000000000151, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151], ], } yerrs = { 'alpha3.yoda' : [ [5229.474002909608, 207.00895497059187, 121.19749608738307, 85.26464780487431, 65.23402245723017, 52.377649640072455, 43.45729926610871, 36.89038487014969, 31.70900750614553, 27.76804513426379, 24.533454305606675, 21.821542165468923, 19.667705626943373, 17.768796124174504, 16.141596590668108, 14.734238532206763, 13.457965167375068, 12.369838016804577, 11.414371686244312, 10.60304275679763, 9.816869272535405, 9.148726687359297, 8.555006653590363, 7.962713935784716, 7.482668901154029, 7.001010552793838, 6.569950123714709, 6.19433171976974, 5.850405085925382, 5.472546055592276, 5.197960184788306, 4.853493927655125, 4.607315777943378, 4.297375712749448, 3.9577186850612156, 3.505569594490774, 0.9717348888533694, 0.0, 0.0, 0.0], [5229.474002909608, 207.00895497059187, 121.19749608738307, 85.26464780487431, 65.23402245723017, 52.377649640072455, 43.45729926610871, 36.89038487014969, 31.70900750614553, 27.76804513426379, 24.533454305606675, 21.821542165468923, 19.667705626943373, 17.768796124174504, 16.141596590668108, 14.734238532206763, 13.457965167375068, 12.369838016804577, 11.414371686244312, 10.60304275679763, 9.816869272535405, 9.148726687359297, 8.555006653590363, 7.962713935784716, 7.482668901154029, 7.001010552793838, 6.569950123714709, 6.19433171976974, 5.850405085925382, 5.472546055592276, 5.197960184788306, 4.853493927655125, 4.607315777943378, 4.297375712749448, 3.9577186850612156, 3.505569594490774, 0.9717348888533694, 0.0, 0.0, 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, 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], } ratio0_yerrs = { 'alpha3.yoda' : [ [0.08451543532546005, 0.08451662016572523, 0.08451710378024782, 0.08451739113287261, 0.08451814296393388, 0.08452053094630581, 0.08452012794037073, 0.0845207438205349, 0.08452268368165125, 0.0845230343979318, 0.08452303852028903, 0.08452386720956379, 0.08452619484542091, 0.08452806959955869, 0.08452660287001605, 0.08453291973559053, 0.08453061277180016, 0.08453519273732737, 0.0845330953511525, 0.08453589941750335, 0.08453455937193176, 0.08453532746391326, 0.08453551736675, 0.08453995602412345, 0.0845418720359212, 0.08454780925510313, 0.08453979373497938, 0.08455447525953817, 0.08454711364864985, 0.08455322480316842, 0.08455482461101574, 0.08455328645290584, 0.08456335076873357, 0.08455805627429007, 0.08456703282158527, 0.0845790914437512, 0.0846952324888262, 1.0, 1.0, 1.0], [0.08451543532546005, 0.08451662016572523, 0.08451710378024782, 0.08451739113287261, 0.08451814296393388, 0.08452053094630581, 0.08452012794037073, 0.0845207438205349, 0.08452268368165125, 0.0845230343979318, 0.08452303852028903, 0.08452386720956379, 0.08452619484542091, 0.08452806959955869, 0.08452660287001605, 0.08453291973559053, 0.08453061277180016, 0.08453519273732737, 0.0845330953511525, 0.08453589941750335, 0.08453455937193176, 0.08453532746391326, 0.08453551736675, 0.08453995602412345, 0.0845418720359212, 0.08454780925510313, 0.08453979373497938, 0.08455447525953817, 0.08454711364864985, 0.08455322480316842, 0.08455482461101574, 0.08455328645290584, 0.08456335076873357, 0.08455805627429007, 0.08456703282158527, 0.0845790914437512, 0.0846952324888262, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }