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.883799, 11.70362, 13.35321, 14.64883, 15.75326, 16.69285, 17.5053, 18.24946, 19.80567, 19.80976, 18.24463, 17.5038, 16.69168, 15.75224, 14.6434, 13.35125, 11.7045, 1.883887, 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.0009881753, 0.002463071, 0.002630932, 0.002755613, 0.002857604, 0.002941588, 0.003012323, 0.003075684, 0.00320414, 0.003204471, 0.003075277, 0.003012194, 0.002941486, 0.00285751, 0.002755102, 0.002630738, 0.002463163, 0.0009881983, 0.0], [0.0, 0.0009881753, 0.002463071, 0.002630932, 0.002755613, 0.002857604, 0.002941588, 0.003012323, 0.003075684, 0.00320414, 0.003204471, 0.003075277, 0.003012194, 0.002941486, 0.00285751, 0.002755102, 0.002630738, 0.002463163, 0.0009881983, 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.998520649338764, 0.9998993095741945, 0.9999708752025871, 0.9999635950490638, 1.0005837026913071, 1.0003822723746176, 1.0000974928272692, 1.0001409287283631, 0.9998930839824839, 1.000120455102651, 1.0002873731646467, 0.9995595703176152, 1.0001426925667483, 0.9998606581725419, 0.9997469728778646, 0.9996051830896097, 0.999979716753684, 0.9985625344988179, 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.0005237891315456309, 0.0002104325834512929, 0.00019702044486969746, 0.0001881046255601257, 0.00018150351045723173, 0.0001762858042712842, 0.00017209740363695103, 0.00016855936845446202, 0.00016176162816565338, 0.00016178171744045595, 0.00016860636538442572, 0.0001720122110829248, 0.00017624982794945708, 0.000181378129671375, 0.00018809872601101868, 0.00019696278177330166, 0.00021044154291581483, 0.0005237988260630405, 1.0], [1.0, 0.0005237891315456309, 0.0002104325834512929, 0.00019702044486969746, 0.0001881046255601257, 0.00018150351045723173, 0.0001762858042712842, 0.00017209740363695103, 0.00016855936845446202, 0.00016176162816565338, 0.00016178171744045595, 0.00016860636538442572, 0.0001720122110829248, 0.00017624982794945708, 0.000181378129671375, 0.00018809872601101868, 0.00019696278177330166, 0.00021044154291581483, 0.0005237988260630405, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }