import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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' : [0.0, 4.161937050359711, 21.3041366906475, 19.61897482014388, 17.78324820143885, 16.1476762589928, 14.81242625899281, 13.804075539568343, 13.173491007194244, 13.003129496402861, 13.017562949640306, 13.197366906474821, 13.83975539568345, 14.85689388489209, 16.198323741007187, 17.84361330935252, 19.68241007194244, 21.254910071942465, 3.82568525179856, 0.0], '_alpha3.yoda' : [0.0, 3.814733, 21.22918, 19.67508, 17.83336, 16.20009, 14.84668, 13.83585, 13.1945, 13.01487, 13.00231, 13.17279, 13.80285, 14.8081, 16.15418, 17.78505, 19.63746, 21.3318, 4.162214, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.2686917932267843, 1.3752123643825966, 1.2664211737848057, 1.1479231127118668, 1.0423454045289056, 0.9561488387984991, 0.891064264240271, 0.8503594459457399, 0.8393588338142834, 0.8402926973345234, 0.8518966105098602, 0.8933639899094618, 0.9590220842109135, 1.0456163839971653, 1.1518170128252105, 1.2705162511489243, 1.3720193802394354, 0.24697414479515506, 0.0], [0.0, 0.2686917932267843, 1.3752123643825966, 1.2664211737848057, 1.1479231127118668, 1.0423454045289056, 0.9561488387984991, 0.891064264240271, 0.8503594459457399, 0.8393588338142834, 0.8402926973345234, 0.8518966105098602, 0.8933639899094618, 0.9590220842109135, 1.0456163839971653, 1.1518170128252105, 1.2705162511489243, 1.3720193802394354, 0.24697414479515506, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001428597, 0.003370112, 0.003244412, 0.003088833, 0.002943991, 0.002818334, 0.0027207, 0.002656894, 0.002638747, 0.002637473, 0.002654708, 0.002717454, 0.002814669, 0.002939817, 0.003084646, 0.003241309, 0.003378248, 0.001492244, 0.0], [0.0, 0.001428597, 0.003370112, 0.003244412, 0.003088833, 0.002943991, 0.002818334, 0.0027207, 0.002656894, 0.002638747, 0.002637473, 0.002654708, 0.002717454, 0.002814669, 0.002939817, 0.003084646, 0.003241309, 0.003378248, 0.001492244, 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], '_alpha3.yoda' : [1.0, 0.9165763330491261, 0.9964815898557201, 1.0028597406526316, 1.00281792156267, 1.003245899915662, 1.0023125003566782, 1.0023018173394211, 1.0015947931185654, 1.0009028983061645, 0.9988282791718147, 0.9981377416685473, 0.9973333780382446, 0.9967157411724056, 0.9972747957311513, 0.9967179680293886, 0.9977162313061186, 1.0036175136849455, 1.087965612969135, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455931216056274, 0.06455142418356309, 0.06455083333327394, 0.06455081207374633, 0.06455079900108929, 0.06455045392837039, 0.06455081049695087, 0.06455080475489341, 0.06455052485991782, 0.06455069206004814, 0.0645504983340205, 0.064550562084941, 0.06455064508377076, 0.06455090049534659, 0.06455065982748569, 0.0645508475082563, 0.06455070266566637, 0.06455683845895209, 1.0], [1.0, 0.06455931216056274, 0.06455142418356309, 0.06455083333327394, 0.06455081207374633, 0.06455079900108929, 0.06455045392837039, 0.06455081049695087, 0.06455080475489341, 0.06455052485991782, 0.06455069206004814, 0.0645504983340205, 0.064550562084941, 0.06455064508377076, 0.06455090049534659, 0.06455065982748569, 0.0645508475082563, 0.06455070266566637, 0.06455683845895209, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00034325290909350203, 0.00015819049834952837, 0.00016537112819314004, 0.0001736934088199973, 0.00018231669701456038, 0.0001902682214730996, 0.00019709396635807434, 0.00020168488357027227, 0.00020293168661666972, 0.00020260881473769843, 0.0002011543680503087, 0.0001963513026283369, 0.00018945204978964173, 0.00018148896435238223, 0.00017287115263718583, 0.00016468049330099738, 0.0001589396515236004, 0.0003900592708975353, 1.0], [1.0, 0.00034325290909350203, 0.00015819049834952837, 0.00016537112819314004, 0.0001736934088199973, 0.00018231669701456038, 0.0001902682214730996, 0.00019709396635807434, 0.00020168488357027227, 0.00020293168661666972, 0.00020260881473769843, 0.0002011543680503087, 0.0001963513026283369, 0.00018945204978964173, 0.00018148896435238223, 0.00017287115263718583, 0.00016468049330099738, 0.0001589396515236004, 0.0003900592708975353, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }