import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['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, 1.886589928057553, 11.70479856115109, 13.353598920863304, 14.649363309352523, 15.744070143884885, 16.686471223021588, 17.503593525179856, 18.246888489208633, 19.80778776978415, 19.807374100719453, 18.239388489208636, 17.511512589928056, 16.689298561151084, 15.754435251798556, 14.647106115107917, 13.35652338129496, 11.704737410071951, 1.8865989208633085, 0.0], '_alpha0.yoda' : [0.0, 1.88412, 11.70602, 13.35074, 14.64207, 15.75253, 16.69104, 17.50279, 18.24663, 19.80867, 19.80736, 18.24839, 17.5065, 16.69071, 15.75337, 14.64861, 13.35496, 11.70345, 1.883181, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.15945686532728892, 0.9892449306617229, 1.1285954742170312, 1.2381066875948068, 1.3306293397219193, 1.4102744954357576, 1.4793342042636453, 1.542154021971557, 1.674073821946645, 1.6740379772940979, 1.5415187378524295, 1.4800045960632366, 1.4105135989802562, 1.3315015565571537, 1.2379165978509306, 1.128840797449415, 0.9892401891631253, 0.1594560944383026, 0.0], [0.0, 0.15945686532728892, 0.9892449306617229, 1.1285954742170312, 1.2381066875948068, 1.3306293397219193, 1.4102744954357576, 1.4793342042636453, 1.542154021971557, 1.674073821946645, 1.6740379772940979, 1.5415187378524295, 1.4800045960632366, 1.4105135989802562, 1.3315015565571537, 1.2379165978509306, 1.128840797449415, 0.9892401891631253, 0.1594560944383026, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0009882595, 0.002463323, 0.002630688, 0.002754976, 0.002857537, 0.00294143, 0.003012107, 0.003075446, 0.003204383, 0.003204277, 0.003075594, 0.003012426, 0.0029414, 0.002857613, 0.002755592, 0.002631104, 0.002463053, 0.0009880131, 0.0], [0.0, 0.0009882595, 0.002463323, 0.002630688, 0.002754976, 0.002857537, 0.00294143, 0.003012107, 0.003075446, 0.003204383, 0.003204277, 0.003075594, 0.003012426, 0.0029414, 0.002857613, 0.002755592, 0.002631104, 0.002463053, 0.0009880131, 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, 0.9986907976021604, 1.0001043536838783, 0.9997859063402873, 0.9995021415471438, 1.0005373360279648, 1.0002738012679464, 0.9999540937020334, 0.9999858337924964, 1.0000445395632316, 0.9999992881075814, 1.000493520426778, 0.9997137545998773, 1.0000845714901525, 0.9999323840060573, 1.0001026745406405, 0.999882949982542, 0.9998900094870268, 0.9981883161145113, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08452121097215169, 0.08451618586116336, 0.08451620277839438, 0.08451607496172671, 0.0845162227785644, 0.08451604156366291, 0.0845160282164656, 0.08451599969406293, 0.08451594097248791, 0.08451589639200548, 0.08451592216287687, 0.08451609125498832, 0.08451605043866932, 0.08451598139039271, 0.08451612135000974, 0.08451606493874682, 0.08451622232138946, 0.08452039947385077, 1.0], [1.0, 0.08452121097215169, 0.08451618586116336, 0.08451620277839438, 0.08451607496172671, 0.0845162227785644, 0.08451604156366291, 0.0845160282164656, 0.08451599969406293, 0.08451594097248791, 0.08451589639200548, 0.08451592216287687, 0.08451609125498832, 0.08451605043866932, 0.08451598139039271, 0.08451612135000974, 0.08451606493874682, 0.08451622232138946, 0.08452039947385077, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0005238337623362164, 0.00021045411308280972, 0.0001970021726420047, 0.00018806114244167553, 0.00018149925488676057, 0.00017627633552274604, 0.00017208506331382311, 0.00016854632513476722, 0.00016177389606769393, 0.00016177192310835452, 0.00016862374535306818, 0.00017202545951014138, 0.00017624467494678983, 0.00018138466751283703, 0.0001881321797182663, 0.00019699018411368257, 0.00021043214501168883, 0.0005237006599939562, 1.0], [1.0, 0.0005238337623362164, 0.00021045411308280972, 0.0001970021726420047, 0.00018806114244167553, 0.00018149925488676057, 0.00017627633552274604, 0.00017208506331382311, 0.00016854632513476722, 0.00016177389606769393, 0.00016177192310835452, 0.00016862374535306818, 0.00017202545951014138, 0.00017624467494678983, 0.00018138466751283703, 0.0001881321797182663, 0.00019699018411368257, 0.00021043214501168883, 0.0005237006599939562, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }