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.588381294964027, 22.40933453237412, 19.926276978417256, 17.742366906474825, 15.925809352517978, 14.475785971223026, 13.400208633093525, 12.698998201438851, 12.372629496402864, 12.375325539568362, 12.701719424460434, 13.4145035971223, 14.509787769784175, 15.947255395683447, 17.75301079136691, 19.92181654676258, 22.29276978417268, 4.50042086330935, 0.0], '_alpha3.yoda' : [0.0, 4.590366, 22.41033, 19.9196, 17.74649, 15.93048, 14.47653, 13.40009, 12.7009, 12.37806, 12.37702, 12.70757, 13.41393, 14.4952, 15.94376, 17.76054, 19.92141, 22.29396, 4.501022, 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.3878024004915744, 1.8939446723776943, 1.6840878984136645, 1.4995149138865098, 1.345986015959155, 1.2234375615049997, 1.1325368336717387, 1.0732734904009573, 1.045689083393038, 1.0459158111740996, 1.0735022269234307, 1.133741820934736, 1.226310774867902, 1.3478002539541118, 1.500414215706678, 1.6837132977201983, 1.8840904577978617, 0.3803665567024635, 0.0], [0.0, 0.3878024004915744, 1.8939446723776943, 1.6840878984136645, 1.4995149138865098, 1.345986015959155, 1.2234375615049997, 1.1325368336717387, 1.0732734904009573, 1.045689083393038, 1.0459158111740996, 1.0735022269234307, 1.133741820934736, 1.226310774867902, 1.3478002539541118, 1.500414215706678, 1.6837132977201983, 1.8840904577978617, 0.3803665567024635, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001565553, 0.00345914, 0.003261252, 0.003078225, 0.002916476, 0.002780202, 0.00267484, 0.002604122, 0.002570812, 0.002570704, 0.002604806, 0.002676221, 0.002781994, 0.002917691, 0.003079442, 0.0032614, 0.003450147, 0.001550242, 0.0], [0.0, 0.001565553, 0.00345914, 0.003261252, 0.003078225, 0.002916476, 0.002780202, 0.00267484, 0.002604122, 0.002570812, 0.002570704, 0.002604806, 0.002676221, 0.002781994, 0.002917691, 0.003079442, 0.0032614, 0.003450147, 0.001550242, 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, 1.0004325501540494, 1.0000444220074647, 0.9996649159085519, 1.0002323868932996, 1.0002932753606826, 1.0000513981609327, 0.9999911469219045, 1.0001497597315145, 1.00043891264979, 1.0001369224935717, 1.0004606128779936, 0.9999572405256634, 0.9989946255578904, 0.999780815218875, 1.0004241088298527, 0.9999795928869425, 1.000053390217494, 1.0001335734387755, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451834657185237, 0.0845158819705943, 0.08451593341986313, 0.08451605818946756, 0.08451601963616032, 0.08451614053545131, 0.08451635826585524, 0.08451639045663861, 0.08451631754568054, 0.08451622608471437, 0.08451629193258084, 0.08451612187706656, 0.08451610694276493, 0.08451612647521342, 0.08451604256537221, 0.08451605272882669, 0.08451576345329326, 0.08451799692857255, 1.0], [1.0, 0.08451834657185237, 0.0845158819705943, 0.08451593341986313, 0.08451605818946756, 0.08451601963616032, 0.08451614053545131, 0.08451635826585524, 0.08451639045663861, 0.08451631754568054, 0.08451622608471437, 0.08451629193258084, 0.08451612187706656, 0.08451610694276493, 0.08451612647521342, 0.08451604256537221, 0.08451605272882669, 0.08451576345329326, 0.08451799692857255, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0003411994120275643, 0.00015436156727468545, 0.000163665897223669, 0.00017349573572828354, 0.00018312890324402164, 0.00019205879428770714, 0.00019961181749022483, 0.00020506515228145648, 0.0002077821857308037, 0.00020772819202052794, 0.0002050750699927897, 0.00019950205243331605, 0.00019173223234824615, 0.000182958818154361, 0.00017346026745488702, 0.0001637099705413158, 0.0001547652908724478, 0.0003444660059770591, 1.0], [1.0, 0.0003411994120275643, 0.00015436156727468545, 0.000163665897223669, 0.00017349573572828354, 0.00018312890324402164, 0.00019205879428770714, 0.00019961181749022483, 0.00020506515228145648, 0.0002077821857308037, 0.00020772819202052794, 0.0002050750699927897, 0.00019950205243331605, 0.00019173223234824615, 0.000182958818154361, 0.00017346026745488702, 0.0001637099705413158, 0.0001547652908724478, 0.0003444660059770591, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }