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.292613309352517, 13.087525179856126, 14.400622302158267, 15.514836330935255, 16.41874460431654, 17.160683453237414, 17.71473920863309, 18.1383273381295, 18.761942446043143, 18.750647482014415, 18.125359712230217, 17.715604316546763, 17.14687589928058, 16.41989388489208, 15.4934928057554, 14.404311151079131, 13.088106115107925, 2.292046762589927, 0.0], '_alpha2.yoda' : [0.0, 2.293178, 13.08849, 14.39592, 15.50021, 16.41834, 17.15309, 17.7223, 18.12519, 18.76721, 18.76216, 18.12393, 17.72403, 17.15872, 16.41922, 15.50001, 14.40408, 13.08898, 2.292287, 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.1937723242046165, 1.1061082353415796, 1.217087407360468, 1.31125333901686, 1.387647217400227, 1.4503529542280036, 1.4971784143132347, 1.5329809949281936, 1.5856838718489723, 1.584728345943995, 1.5318850124679202, 1.49725316963522, 1.4491848857132275, 1.3877441901037855, 1.3094507187066218, 1.2173983347916744, 1.1061560500114198, 0.1937227368785265, 0.0], [0.0, 0.1937723242046165, 1.1061082353415796, 1.217087407360468, 1.31125333901686, 1.387647217400227, 1.4503529542280036, 1.4971784143132347, 1.5329809949281936, 1.5856838718489723, 1.584728345943995, 1.5318850124679202, 1.49725316963522, 1.4491848857132275, 1.3877441901037855, 1.3094507187066218, 1.2173983347916744, 1.1061560500114198, 0.1937227368785265, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001106467, 0.00264341, 0.002772295, 0.00287666, 0.002960631, 0.003026153, 0.003075953, 0.00311072, 0.003165334, 0.003164908, 0.003110612, 0.003076103, 0.003026649, 0.002960711, 0.002876641, 0.002773081, 0.002643459, 0.001106252, 0.0], [0.0, 0.001106467, 0.00264341, 0.002772295, 0.00287666, 0.002960631, 0.003026153, 0.003075953, 0.00311072, 0.003165334, 0.003164908, 0.003110612, 0.003076103, 0.003026649, 0.002960711, 0.002876641, 0.002773081, 0.002643459, 0.001106252, 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, 1.000246308719041, 1.0000737205950412, 0.9996734653503438, 0.9990572681127101, 0.9999753571709475, 0.9995575086937472, 1.0004268079409955, 0.9992757139131632, 1.0002807573881012, 1.0006139797570526, 0.9999211208906794, 1.0004756080178066, 1.000690743945952, 0.9999589592419534, 1.0004206407377798, 0.999983952646072, 1.0000667693923313, 1.0001048134854813, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845202823407415, 0.08451622595875222, 0.08451630643615028, 0.08451609227757904, 0.08451603644747663, 0.0845160367988951, 0.0845159726417875, 0.08451611696882526, 0.08451597569970107, 0.08451592658141877, 0.08451611646825799, 0.08451606520906277, 0.0845159721354273, 0.08451602670713036, 0.08451617302330933, 0.08451624808871684, 0.08451612787082743, 0.08451953949649225, 1.0], [1.0, 0.0845202823407415, 0.08451622595875222, 0.08451630643615028, 0.08451609227757904, 0.08451603644747663, 0.0845160367988951, 0.0845159726417875, 0.08451611696882526, 0.08451597569970107, 0.08451592658141877, 0.08451611646825799, 0.08451606520906277, 0.0845159721354273, 0.08451602670713036, 0.08451617302330933, 0.08451624808871684, 0.08451612787082743, 0.08451953949649225, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0004826226016774237, 0.00020197936307076963, 0.00019251216661550158, 0.00018541349316487384, 0.0001803201810704602, 0.00017634221901745455, 0.00017363806284548445, 0.00017149982696920444, 0.00016871035656905358, 0.0001687892646393024, 0.00017161656647846234, 0.00017363805067190693, 0.00017651314547199745, 0.00018031243202638148, 0.00018566768875585035, 0.00019251743251826717, 0.00020197414177048806, 0.0004826480934228309, 1.0], [1.0, 0.0004826226016774237, 0.00020197936307076963, 0.00019251216661550158, 0.00018541349316487384, 0.0001803201810704602, 0.00017634221901745455, 0.00017363806284548445, 0.00017149982696920444, 0.00016871035656905358, 0.0001687892646393024, 0.00017161656647846234, 0.00017363805067190693, 0.00017651314547199745, 0.00018031243202638148, 0.00018566768875585035, 0.00019251743251826717, 0.00020197414177048806, 0.0004826480934228309, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }