import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 2.013205035971222, 12.402341726618715, 14.059778776978412, 15.35069604316547, 16.420107913669057, 17.296553956834536, 18.00384892086331, 18.589406474820144, 19.489982014388467, 19.48616906474823, 18.591528776978418, 18.00962230215827, 17.30706474820144, 16.42169604316546, 15.351465827338133, 14.054417266187045, 12.395223021582744, 2.0164082733812942, 0.0], '_alpha2.yoda' : [0.0, 2.012777, 12.39859, 14.06199, 15.34065, 16.41466, 17.30115, 18.01283, 18.59386, 19.48948, 19.4876, 18.59141, 18.01291, 17.30219, 16.41709, 15.3493, 14.05953, 12.40592, 2.013852, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.17015648005763775, 1.048199988395377, 1.1882775158985899, 1.2973825836050867, 1.3877630710199351, 1.4618372670129842, 1.521611115098338, 1.5711038541522528, 1.6472143683194256, 1.6468924677938672, 1.5712826636702468, 1.5221019106778992, 1.4627267821615313, 1.3878996586389747, 1.2974457883580603, 1.1878237615682472, 1.047596796076988, 0.17042874499096888, 0.0], [0.0, 0.17015648005763775, 1.048199988395377, 1.1882775158985899, 1.2973825836050867, 1.3877630710199351, 1.4618372670129842, 1.521611115098338, 1.5711038541522528, 1.6472143683194256, 1.6468924677938672, 1.5712826636702468, 1.5221019106778992, 1.4627267821615313, 1.3878996586389747, 1.2974457883580603, 1.1878237615682472, 1.047596796076988, 0.17042874499096888, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001037253, 0.002574381, 0.002741638, 0.002863575, 0.00296212, 0.003041054, 0.00310297, 0.003152618, 0.003227653, 0.003227497, 0.003152411, 0.003102977, 0.003041146, 0.002962339, 0.002864382, 0.002741398, 0.002575142, 0.001037529, 0.0], [0.0, 0.001037253, 0.002574381, 0.002741638, 0.002863575, 0.00296212, 0.003041054, 0.00310297, 0.003152618, 0.003227653, 0.003227497, 0.003152411, 0.003102977, 0.003041146, 0.002962339, 0.002864382, 0.002741398, 0.002575142, 0.001037529, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 0.9997873858034456, 0.999697498528793, 1.000157272959743, 0.9993455643224762, 0.9996682169387864, 1.00026572016466, 1.0004988421740355, 1.0002395732852412, 0.9999742424396239, 1.000073433379697, 0.999993611231231, 1.0001825522926895, 0.9997183376689021, 0.9997195147715953, 0.9998589172289803, 1.000363781273611, 1.0008629920089884, 0.9987322639888758, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845201939282602, 0.08451629631730448, 0.08451608910406787, 0.08451620564676057, 0.08451607494398256, 0.08451609902534117, 0.08451587889826476, 0.08451608480778317, 0.08451595117447366, 0.08451596936892049, 0.08451605473219287, 0.08451603732386385, 0.0845161674404401, 0.08451621896975764, 0.08451608484497607, 0.08451604496089528, 0.08451617161328176, 0.08452095105976662, 1.0], [1.0, 0.0845201939282602, 0.08451629631730448, 0.08451608910406787, 0.08451620564676057, 0.08451607494398256, 0.08451609902534117, 0.08451587889826476, 0.08451608480778317, 0.08451595117447366, 0.08451596936892049, 0.08451605473219287, 0.08451603732386385, 0.0845161674404401, 0.08451621896975764, 0.08451608484497607, 0.08451604496089528, 0.08451617161328176, 0.08452095105976662, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0005152247195227198, 0.0002075721711872118, 0.0001949986584774135, 0.00018654365847305915, 0.00018039589115819137, 0.00017581849006393337, 0.00017235036872611172, 0.0001695921816691838, 0.0001656057454346129, 0.00016563014460542458, 0.00016956168789645628, 0.00017229550669855745, 0.00017571702910027176, 0.00018039178122730476, 0.0001865868726945321, 0.0001950559705236174, 0.00020775277665566202, 0.0005145431179272927, 1.0], [1.0, 0.0005152247195227198, 0.0002075721711872118, 0.0001949986584774135, 0.00018654365847305915, 0.00018039589115819137, 0.00017581849006393337, 0.00017235036872611172, 0.0001695921816691838, 0.0001656057454346129, 0.00016563014460542458, 0.00016956168789645628, 0.00017229550669855745, 0.00017571702910027176, 0.00018039178122730476, 0.0001865868726945321, 0.0001950559705236174, 0.00020775277665566202, 0.0005145431179272927, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }