import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['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, 384.114083333333, 978.4733333333334, 864.5675, 771.4875833333333, 694.3967500000001, 632.3932500000001, 586.6769166666667, 555.8950833333333, 540.5090833333334, 539.99825, 555.72525, 586.1510833333334, 632.17425, 693.5338333333333, 770.5550000000001, 863.5141666666667, 975.7641666666667, 382.75116666666634, 0.0], '_alpha0.yoda' : [0.0, 384.1351, 978.1219, 865.1852, 771.372, 694.3161, 632.6068, 586.2402, 555.7732, 540.3495, 540.2844, 555.6073, 586.1643, 632.2122, 693.6291, 770.4663, 863.3799, 975.9994, 382.884, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 32.46402923921247, 82.69658396814225, 73.06980585561848, 65.20320267355653, 58.68765012997008, 53.44755347274768, 49.5837394941348, 46.98216269086717, 45.68186334738207, 45.638654729905824, 46.96785987365308, 49.53942033034568, 53.428905254241045, 58.61476752681207, 65.12417092669118, 72.9806719085418, 82.467485175135, 32.34890089151233, 0.0], [0.0, 32.46402923921247, 82.69658396814225, 73.06980585561848, 65.20320267355653, 58.68765012997008, 53.44755347274768, 49.5837394941348, 46.98216269086717, 45.68186334738207, 45.638654729905824, 46.96785987365308, 49.53942033034568, 53.428905254241045, 58.61476752681207, 65.12417092669118, 72.9806719085418, 82.467485175135, 32.34890089151233, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0960518, 0.153271, 0.1441511, 0.1361117, 0.1291344, 0.1232623, 0.1186592, 0.1155347, 0.1139202, 0.1139134, 0.1155174, 0.1186515, 0.1232239, 0.1290705, 0.1360318, 0.1440006, 0.1531046, 0.09589526, 0.0], [0.0, 0.0960518, 0.153271, 0.1441511, 0.1361117, 0.1291344, 0.1232623, 0.1186592, 0.1155347, 0.1139202, 0.1139134, 0.1155174, 0.1186515, 0.1232239, 0.1290705, 0.1360318, 0.1440006, 0.1531046, 0.09589526, 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, 1.0000547146474938, 0.9996408350423448, 1.0007144612768812, 0.9998501812137611, 0.9998838560232315, 1.0003376854512598, 0.9992556095965937, 0.9997807439983054, 0.999704753651226, 1.0005299091247055, 0.9997877548302871, 1.0000225482252656, 1.0000600309171088, 1.000137364122827, 0.9998848881650239, 0.9998445113330509, 1.0002410760113654, 1.0003470488006359, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.0845166335935678, 0.0845159302261437, 0.08451602200593764, 0.08451620490356546, 0.08451602074746184, 0.08451632504418362, 0.08451626114055359, 0.08451624074303081, 0.08451636569298863, 0.08451630117302385, 0.08451633225888708, 0.08451646979584872, 0.0845161049413845, 0.08451608949644428, 0.08451592803458699, 0.084515894151756, 0.08451579591906343, 0.08451679239343671, 1.0], [1.0, 0.0845166335935678, 0.0845159302261437, 0.08451602200593764, 0.08451620490356546, 0.08451602074746184, 0.08451632504418362, 0.08451626114055359, 0.08451624074303081, 0.08451636569298863, 0.08451630117302385, 0.08451633225888708, 0.08451646979584872, 0.0845161049413845, 0.08451608949644428, 0.08451592803458699, 0.084515894151756, 0.08451579591906343, 0.08451679239343671, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0002500606048246519, 0.00015664300168289374, 0.00016673203653850047, 0.00017642759642599564, 0.00018596630816604482, 0.00019491400327248905, 0.00020225646625776284, 0.00020783544137000672, 0.0002107646356236073, 0.00021095142437961605, 0.00020786782677231243, 0.00020242477302140384, 0.00019492078331251233, 0.00018610555649411963, 0.00017653743081285565, 0.00016676113207947756, 0.00015690738113803112, 0.00025054204494042494, 1.0], [1.0, 0.0002500606048246519, 0.00015664300168289374, 0.00016673203653850047, 0.00017642759642599564, 0.00018596630816604482, 0.00019491400327248905, 0.00020225646625776284, 0.00020783544137000672, 0.0002107646356236073, 0.00021095142437961605, 0.00020786782677231243, 0.00020242477302140384, 0.00019492078331251233, 0.00018610555649411963, 0.00017653743081285565, 0.00016676113207947756, 0.00015690738113803112, 0.00025054204494042494, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }