import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 2.0158417266187043, 12.404082733812961, 14.062392086330929, 15.348604316546766, 16.4085989208633, 17.290863309352524, 18.015017985611507, 18.590845323741007, 19.492967625899258, 19.48570143884895, 18.584460431654676, 18.020305755395682, 17.293267985611514, 16.419257194244597, 15.34327517985612, 14.062230215827334, 12.405143884892096, 2.0166708633093515, 0.0], '_alpha2.yoda' : [0.0, 2.013993, 12.40545, 14.06603, 15.3466, 16.41887, 17.29945, 18.01116, 18.59683, 19.4898, 19.48877, 18.59252, 18.00942, 17.29714, 16.41373, 15.34001, 14.05809, 12.40516, 2.012733, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.17038115424135045, 1.048345178098522, 1.1884985443481642, 1.2972034244056072, 1.3867925855280612, 1.4613551187816318, 1.5225574925942036, 1.571224400973121, 1.6474678771659446, 1.646851317340275, 1.5706840813847152, 1.5230061415365381, 1.4615579790419313, 1.387689876900322, 1.2967536095638916, 1.188485071499758, 1.0484352750931885, 0.17045069452184136, 0.0], [0.0, 0.17038115424135045, 1.048345178098522, 1.1884985443481642, 1.2972034244056072, 1.3867925855280612, 1.4613551187816318, 1.5225574925942036, 1.571224400973121, 1.6474678771659446, 1.646851317340275, 1.5706840813847152, 1.5230061415365381, 1.4615579790419313, 1.387689876900322, 1.2967536095638916, 1.188485071499758, 1.0484352750931885, 0.17045069452184136, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001037566, 0.002575093, 0.002742032, 0.00286413, 0.0029625, 0.003040905, 0.003102827, 0.003152871, 0.003227679, 0.003227594, 0.003152505, 0.003102677, 0.003040702, 0.002962036, 0.002863515, 0.002741258, 0.002575063, 0.001037241, 0.0], [0.0, 0.001037566, 0.002575093, 0.002742032, 0.00286413, 0.0029625, 0.003040905, 0.003102827, 0.003152871, 0.003227679, 0.003227594, 0.003152505, 0.003102677, 0.003040702, 0.002962036, 0.002863515, 0.002741258, 0.002575063, 0.001037241, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 0.9990829009072031, 1.000110227109604, 1.000258698068347, 0.9998694137587087, 1.000625957108601, 1.0004966027718716, 0.9997858461415587, 1.000321915230576, 0.9998374990427291, 1.0001574775822508, 1.0004336724423593, 0.9993959172755754, 1.0002239029888225, 0.9996633712366395, 0.9997871914687154, 0.999705579003914, 1.0000012990665852, 0.9980473445711961, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08452109706407421, 0.08451613880652223, 0.08451610060733698, 0.08451605094849829, 0.08451620959329892, 0.08451602980350863, 0.08451601290713458, 0.08451602784122061, 0.08451601155778059, 0.08451588578981928, 0.08451599050513131, 0.08451610989344706, 0.08451600820955234, 0.08451599609431452, 0.08451608892906866, 0.08451611538560172, 0.08451617206714149, 0.08452082966187761, 1.0], [1.0, 0.08452109706407421, 0.08451613880652223, 0.08451610060733698, 0.08451605094849829, 0.08451620959329892, 0.08451602980350863, 0.08451601290713458, 0.08451602784122061, 0.08451601155778059, 0.08451588578981928, 0.08451599050513131, 0.08451610989344706, 0.08451600820955234, 0.08451599609431452, 0.08451608892906866, 0.08451611538560172, 0.08451617206714149, 0.08452082966187761, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0005147060834683551, 0.0002076004373124999, 0.00019499043855172678, 0.00018660524051117056, 0.00018054557944208283, 0.00017586773694261944, 0.00017223557603318577, 0.00016959266483561667, 0.00016558171449028398, 0.00016563909747508985, 0.00016963123635434568, 0.000172176712321931, 0.00017583154338034603, 0.00018040012193963777, 0.0001866299708786721, 0.0001949376420331006, 0.00020758026056723957, 0.0005143333098480385, 1.0], [1.0, 0.0005147060834683551, 0.0002076004373124999, 0.00019499043855172678, 0.00018660524051117056, 0.00018054557944208283, 0.00017586773694261944, 0.00017223557603318577, 0.00016959266483561667, 0.00016558171449028398, 0.00016563909747508985, 0.00016963123635434568, 0.000172176712321931, 0.00017583154338034603, 0.00018040012193963777, 0.0001866299708786721, 0.0001949376420331006, 0.00020758026056723957, 0.0005143333098480385, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }