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, 3.8225485611510774, 21.25388489208635, 19.68649280575539, 17.845215827338134, 16.202564748201432, 14.851852517985616, 13.840100719424457, 13.197744604316547, 13.014944244604301, 13.003741007194261, 13.174937050359715, 13.803625899280574, 14.810910071942448, 16.145604316546756, 17.782246402877703, 19.619154676258983, 21.306169064748218, 4.1638758992805744, 0.0], '_alpha3.yoda' : [0.0, 4.161496, 21.33039, 19.63971, 17.7862, 16.15278, 14.80775, 13.80369, 13.1705, 13.00395, 13.01699, 13.19327, 13.8379, 14.84593, 16.19653, 17.83523, 19.67386, 21.23085, 3.81408, 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.24676966871152123, 1.3719547774964258, 1.2707820329670372, 1.1519206400238677, 1.0458881301297656, 0.9586968677748731, 0.8933875257444203, 0.8519207223916486, 0.8401238737743039, 0.8393985282568044, 0.8504526404201707, 0.8910350399217796, 0.9560512291158672, 1.0422121046669581, 1.1478602700796596, 1.2664344560858694, 1.375344083216545, 0.2688197389845067, 0.0], [0.0, 0.24676966871152123, 1.3719547774964258, 1.2707820329670372, 1.1519206400238677, 1.0458881301297656, 0.9586968677748731, 0.8933875257444203, 0.8519207223916486, 0.8401238737743039, 0.8393985282568044, 0.8504526404201707, 0.8910350399217796, 0.9560512291158672, 1.0422121046669581, 1.1478602700796596, 1.2664344560858694, 1.375344083216545, 0.2688197389845067, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001492116, 0.003378137, 0.003241495, 0.003084746, 0.002939689, 0.002814637, 0.002717536, 0.002654476, 0.002637639, 0.002638961, 0.00265677, 0.002720902, 0.002818263, 0.002943667, 0.003088994, 0.003244312, 0.003370245, 0.001428475, 0.0], [0.0, 0.001492116, 0.003378137, 0.003241495, 0.003084746, 0.002939689, 0.002814637, 0.002717536, 0.002654476, 0.002637639, 0.002638961, 0.00265677, 0.002720902, 0.002818263, 0.002943667, 0.003088994, 0.003244312, 0.003370245, 0.001428475, 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.0886705383663866, 1.0035995823023458, 0.9976236089273499, 0.9966929048149856, 0.9969273538495219, 0.9970305039097171, 0.9973691868171627, 0.9979356621048997, 0.9991552599536598, 1.0010188600955994, 1.0013915018774062, 1.0024829780935465, 1.002364468347147, 1.0031541515854598, 1.0029795783908224, 1.0027883629363101, 0.9964649175307242, 0.9159927174244047, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455632015233624, 0.06455077669152419, 0.06455096118469214, 0.06455067011625451, 0.06455077615078592, 0.06455065902478425, 0.06455065204045508, 0.06455047797432097, 0.06455070863039618, 0.06455054186271558, 0.064550793462573, 0.06455079603165854, 0.0645504715423933, 0.06455082660478997, 0.0645509146636221, 0.0645509185784836, 0.0645514488802259, 0.06455997860814074, 1.0], [1.0, 0.06455632015233624, 0.06455077669152419, 0.06455096118469214, 0.06455067011625451, 0.06455077615078592, 0.06455065902478425, 0.06455065204045508, 0.06455047797432097, 0.06455070863039618, 0.06455054186271558, 0.064550793462573, 0.06455079603165854, 0.0645504715423933, 0.06455082660478997, 0.0645509146636221, 0.0645509185784836, 0.0645514488802259, 0.06455997860814074, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00039034585856266574, 0.0001589420953934785, 0.00016465578871683746, 0.00017286123237995792, 0.000181433559790361, 0.00018951420347000284, 0.00019635232828804218, 0.00020113103258050685, 0.00020266233572944464, 0.00020293860040276155, 0.00020165333540834356, 0.00019711502034706763, 0.00019028290539275318, 0.00018232002607565423, 0.00017371224816118325, 0.00016536451511470684, 0.0001581816510400354, 0.00034306377868917966, 1.0], [1.0, 0.00039034585856266574, 0.0001589420953934785, 0.00016465578871683746, 0.00017286123237995792, 0.000181433559790361, 0.00018951420347000284, 0.00019635232828804218, 0.00020113103258050685, 0.00020266233572944464, 0.00020293860040276155, 0.00020165333540834356, 0.00019711502034706763, 0.00019028290539275318, 0.00018232002607565423, 0.00017371224816118325, 0.00016536451511470684, 0.0001581816510400354, 0.00034306377868917966, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }