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.1011666666663, 1009.6991666666667, 894.7533333333334, 798.1003333333334, 717.8313333333333, 654.24875, 606.1363333333334, 574.3048333333334, 558.3028333333334, 558.6648333333333, 574.8408333333334, 606.545, 654.94075, 718.5445833333334, 798.8698333333333, 895.0441666666667, 1009.7416666666667, 382.683583333333, 0.0], '_alpha3.yoda' : [0.0, 382.8578, 1011.046, 895.7716, 799.0313, 718.857, 654.6508, 606.5006, 574.6312, 558.6703, 558.3847, 574.1884, 606.0503, 653.8249, 717.8332, 797.8878, 894.0601, 1008.739, 381.2333, 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.665592600489703, 65.17686407852952, 57.757004144759605, 51.517964773896544, 46.336608097701756, 42.232195459546425, 39.12653085397001, 37.07164609839229, 36.03888717606148, 36.062166616983944, 37.106509611597204, 39.15298519908795, 42.27679952146068, 46.382617673242876, 51.56777498270279, 57.77581794218831, 65.18004444954333, 24.703620967155558, 0.0], [0.0, 24.665592600489703, 65.17686407852952, 57.757004144759605, 51.517964773896544, 46.336608097701756, 42.232195459546425, 39.12653085397001, 37.07164609839229, 36.03888717606148, 36.062166616983944, 37.106509611597204, 39.15298519908795, 42.27679952146068, 46.382617673242876, 51.56777498270279, 57.77581794218831, 65.18004444954333, 24.703620967155558, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.09741892, 0.1583106, 0.1490127, 0.1407364, 0.1334891, 0.1273883, 0.122614, 0.1193491, 0.1176799, 0.1176498, 0.1193031, 0.1225685, 0.1273079, 0.133394, 0.1406357, 0.1488702, 0.1581299, 0.09721202, 0.0], [0.0, 0.09741892, 0.1583106, 0.1490127, 0.1407364, 0.1334891, 0.1273883, 0.122614, 0.1193491, 0.1176799, 0.1176498, 0.1193031, 0.1225685, 0.1273079, 0.133394, 0.1406357, 0.1488702, 0.1581299, 0.09721202, 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.001980191109947, 1.00133389565704, 1.0011380417694262, 1.0011664782331042, 1.0014288407583212, 1.0006145216173512, 1.0006009649094345, 1.0005682812466898, 1.000658185208326, 0.999498566373577, 0.9988650191574768, 0.9991843968708011, 0.9982962580966294, 0.999009966326608, 0.9987707217216656, 0.9989005384278057, 0.9990070067426488, 0.9962102285112404, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455251842245023, 0.06455077534994781, 0.06455075604981589, 0.0645507370717757, 0.06455082962529976, 0.064550670459128, 0.0645507102977988, 0.06455046857820099, 0.06455078682100211, 0.06455062940299139, 0.06455092863954608, 0.06455083332496014, 0.06455057121038915, 0.06455078605989009, 0.06455091033733629, 0.06455080105974842, 0.06455120809732852, 0.06455364704170677, 1.0], [1.0, 0.06455251842245023, 0.06455077534994781, 0.06455075604981589, 0.0645507370717757, 0.06455082962529976, 0.064550670459128, 0.0645507102977988, 0.06455046857820099, 0.06455078682100211, 0.06455062940299139, 0.06455092863954608, 0.06455083332496014, 0.06455057121038915, 0.06455078605989009, 0.06455091033733629, 0.06455080105974842, 0.06455120809732852, 0.06455364704170677, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00025495582976061776, 0.00015678986892960693, 0.00016654053631168364, 0.00017633923220179918, 0.00018596165115853587, 0.0001947092753329678, 0.00020228782413637416, 0.00020781489737302692, 0.00021078148448109253, 0.00021059102520921163, 0.0002075411019572084, 0.00020207651534511043, 0.00019438078940728609, 0.00018564470889361422, 0.0001760433228692451, 0.00016632721104079594, 0.00015660431298434416, 0.00025402714993217875, 1.0], [1.0, 0.00025495582976061776, 0.00015678986892960693, 0.00016654053631168364, 0.00017633923220179918, 0.00018596165115853587, 0.0001947092753329678, 0.00020228782413637416, 0.00020781489737302692, 0.00021078148448109253, 0.00021059102520921163, 0.0002075411019572084, 0.00020207651534511043, 0.00019438078940728609, 0.00018564470889361422, 0.0001760433228692451, 0.00016632721104079594, 0.00015660431298434416, 0.00025402714993217875, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }