import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 382.6529166666663, 1009.82, 895.0333333333333, 798.8545833333334, 718.6482500000001, 654.8368333333334, 606.6375833333333, 574.706, 558.6325833333334, 558.4366666666667, 574.2264166666666, 606.1955833333334, 654.1622500000001, 717.9030833333334, 798.1238333333334, 894.6899999999999, 1009.6366666666668, 382.157083333333, 0.0], '_alpha3.yoda' : [0.0, 381.2295, 1008.752, 894.0996, 797.9051, 717.837, 653.8137, 606.0358, 574.2081, 558.3072, 558.6668, 574.644, 606.5053, 654.6696, 718.8358, 799.095, 895.7415, 1011.034, 382.837, 0.0], } xerrs = { 'alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 24.70164327642099, 65.18506240781788, 57.77507872969298, 51.566791908919235, 46.389294742070255, 42.270080698080314, 39.15898860911616, 37.09778744525519, 36.060096444068975, 36.04753805740415, 37.06662544961737, 39.13033776155444, 42.22663719607434, 46.34121635578131, 51.51946773362042, 57.75287390636456, 65.17284177903827, 24.669241138173103, 0.0], [0.0, 24.70164327642099, 65.18506240781788, 57.77507872969298, 51.566791908919235, 46.389294742070255, 42.270080698080314, 39.15898860911616, 37.09778744525519, 36.060096444068975, 36.04753805740415, 37.06662544961737, 39.13033776155444, 42.22663719607434, 46.34121635578131, 51.51946773362042, 57.75287390636456, 65.17284177903827, 24.669241138173103, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.09721154, 0.1581309, 0.1488735, 0.1406372, 0.1333944, 0.1273068, 0.122567, 0.1193052, 0.1176417, 0.1176795, 0.1193504, 0.1226145, 0.1273901, 0.1334871, 0.140742, 0.1490102, 0.1583097, 0.09741628, 0.0], [0.0, 0.09721154, 0.1581309, 0.1488735, 0.1406372, 0.1333944, 0.1273068, 0.122567, 0.1193052, 0.1176417, 0.1176795, 0.1193504, 0.1226145, 0.1273901, 0.1334871, 0.140742, 0.1490102, 0.1583097, 0.09741628, 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.9962801363724969, 0.9989423857717216, 0.998956761386913, 0.9988114440936527, 0.9988711445411576, 0.9984375751618533, 0.9990080018945964, 0.9991336439849243, 0.9994175360638796, 1.000412102834699, 1.00072721024532, 1.0005109187120163, 1.0007755721153275, 1.001299223653332, 1.0012168120110014, 1.0011752674110586, 1.0013839962230637, 1.001779154950463, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455365214931552, 0.06455116991921123, 0.06455075646682766, 0.06455091199921459, 0.06455076561039459, 0.0645505544990678, 0.06455087796233555, 0.06455089636310599, 0.06455065014092114, 0.06455080801297218, 0.06455054029869584, 0.06455068106300858, 0.0645507092408257, 0.06455079721988655, 0.06455071955244257, 0.06455070907952985, 0.06455078735819644, 0.06455262041199844, 1.0], [1.0, 0.06455365214931552, 0.06455116991921123, 0.06455075646682766, 0.06455091199921459, 0.06455076561039459, 0.0645505544990678, 0.06455087796233555, 0.06455089636310599, 0.06455065014092114, 0.06455080801297218, 0.06455054029869584, 0.06455068106300858, 0.0645507092408257, 0.06455079721988655, 0.06455071955244257, 0.06455070907952985, 0.06455078735819644, 0.06455262041199844, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00025404625383969613, 0.00015659315521578102, 0.0001663329112509776, 0.0001760485611951695, 0.00018561848581694868, 0.0001944099560679365, 0.00020204320234582676, 0.00020759344778025634, 0.00021058868299095215, 0.00021073025290841693, 0.00020784554060194316, 0.00020226887719268822, 0.00019473777338878848, 0.00018594027954330417, 0.00017634105651524834, 0.00016654953112251174, 0.00015679868335473815, 0.0002549116168416785, 1.0], [1.0, 0.00025404625383969613, 0.00015659315521578102, 0.0001663329112509776, 0.0001760485611951695, 0.00018561848581694868, 0.0001944099560679365, 0.00020204320234582676, 0.00020759344778025634, 0.00021058868299095215, 0.00021073025290841693, 0.00020784554060194316, 0.00020226887719268822, 0.00019473777338878848, 0.00018594027954330417, 0.00017634105651524834, 0.00016654953112251174, 0.00015679868335473815, 0.0002549116168416785, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }