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.951755395683452, 16.893464028776993, 19.065719424460422, 20.794694244604322, 22.2145143884892, 23.399064748201447, 24.32843525179856, 25.05361510791367, 25.658075539568312, 25.666420863309387, 25.043219424460432, 24.337895683453237, 23.39769784172662, 22.213183453237402, 20.79992805755396, 19.07016187050359, 16.89919604316548, 2.9498597122302144, 0.0], '_alpha2.yoda' : [0.0, 2.955165, 16.8941, 19.07076, 20.78737, 22.21974, 23.40491, 24.33094, 25.04594, 25.65719, 25.65805, 25.04585, 24.33795, 23.39433, 22.21991, 20.79606, 19.07347, 16.90077, 2.953009, 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.24948202123461832, 1.427768826256824, 1.6113622426395295, 1.757486371452511, 1.8774850688455285, 1.9776028408711719, 2.0561393046489203, 2.1174305445927546, 2.1685195933750747, 2.16922282493053, 2.1165542209201056, 2.0569415059210123, 1.977481793224411, 1.8773730734326772, 1.757927414920356, 1.6117372014641556, 1.4282546119226944, 0.2493236542344919, 0.0], [0.0, 0.24948202123461832, 1.427768826256824, 1.6113622426395295, 1.757486371452511, 1.8774850688455285, 1.9776028408711719, 2.0561393046489203, 2.1174305445927546, 2.1685195933750747, 2.16922282493053, 2.1165542209201056, 2.0569415059210123, 1.977481793224411, 1.8773730734326772, 1.757927414920356, 1.6117372014641556, 1.4282546119226944, 0.2493236542344919, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.00146018, 0.003491267, 0.003709364, 0.003872712, 0.004003916, 0.004109311, 0.004189815, 0.004250932, 0.004302492, 0.004302564, 0.004250924, 0.004190419, 0.004108381, 0.004003931, 0.003873522, 0.003709627, 0.003491955, 0.001459647, 0.0], [0.0, 0.00146018, 0.003491267, 0.003709364, 0.003872712, 0.004003916, 0.004109311, 0.004189815, 0.004250932, 0.004302492, 0.004302564, 0.004250924, 0.004190419, 0.004108381, 0.004003931, 0.003873522, 0.003709627, 0.003491955, 0.001459647, 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.0011551107254801, 1.0000376459926705, 1.0002643789844674, 0.999647783010504, 1.0002352341095293, 1.0002498070697037, 1.0001029555816277, 0.999693652677244, 0.999965486906181, 0.9996738593450966, 1.0001050414283796, 1.0000022317684105, 0.9998560609787593, 1.0003028177738125, 0.999814035051311, 1.0001734714953587, 1.0000931379712088, 1.0010676059463874, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845198831852573, 0.08451604856320209, 0.08451620454312506, 0.08451609582615204, 0.08451614273496687, 0.0845163198680058, 0.08451588782295044, 0.08451596847290604, 0.08451606551827773, 0.0845159843861001, 0.08451605941897415, 0.0845159964803152, 0.08451608387291165, 0.08451616479847981, 0.08451603342358319, 0.08451617833182, 0.08451612776575378, 0.08452051234870185, 1.0], [1.0, 0.0845198831852573, 0.08451604856320209, 0.08451620454312506, 0.08451609582615204, 0.08451614273496687, 0.0845163198680058, 0.08451588782295044, 0.08451596847290604, 0.08451606551827773, 0.0845159843861001, 0.08451605941897415, 0.0845159964803152, 0.08451608387291165, 0.08451616479847981, 0.08451603342358319, 0.08451617833182, 0.08451612776575378, 0.08452051234870185, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0004946819110199029, 0.00020666377209865532, 0.00019455672861948552, 0.000186235582713839, 0.00018023873625951022, 0.00017561860032529118, 0.00017221884418934237, 0.0001696733976988918, 0.00016768568606655477, 0.00016763396902567718, 0.00016974351132538495, 0.00017217671792590382, 0.0001755891125610341, 0.00018025021080067015, 0.00018622766334969336, 0.000194525197278886, 0.0002066343861021866, 0.0004948191244309876, 1.0], [1.0, 0.0004946819110199029, 0.00020666377209865532, 0.00019455672861948552, 0.000186235582713839, 0.00018023873625951022, 0.00017561860032529118, 0.00017221884418934237, 0.0001696733976988918, 0.00016768568606655477, 0.00016763396902567718, 0.00016974351132538495, 0.00017217671792590382, 0.0001755891125610341, 0.00018025021080067015, 0.00018622766334969336, 0.000194525197278886, 0.0002066343861021866, 0.0004948191244309876, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }