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.95311, 16.90307, 19.07301, 20.79353, 22.21887, 23.39688, 24.33555, 25.04803, 25.65777, 25.65579, 25.04387, 24.33287, 23.4043, 22.22053, 20.78477, 19.07242, 16.89545, 2.955706, 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.001459672, 0.003492193, 0.003709583, 0.003873286, 0.004003837, 0.004108605, 0.004190212, 0.004251109, 0.00430254, 0.004302374, 0.004250756, 0.004189982, 0.004109257, 0.004003987, 0.00387247, 0.003709525, 0.003491406, 0.001460314, 0.0], [0.0, 0.001459672, 0.003492193, 0.003709583, 0.003873286, 0.004003837, 0.004108605, 0.004190212, 0.004251109, 0.00430254, 0.004302374, 0.004250756, 0.004189982, 0.004109257, 0.004003987, 0.00387247, 0.003709525, 0.003491406, 0.001460314, 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.0004589148269294, 1.0005686205745987, 1.0003823918404162, 0.9999440124201574, 1.0001960705255415, 0.9999066309604697, 1.0002924457790978, 0.999777073772004, 0.9999880918750963, 0.9995858065537847, 1.000025978111222, 0.9997935037803349, 1.0002821712767658, 1.0003307291266046, 0.9992712447123848, 1.0001184116585766, 0.9997783300959459, 1.0019818867133061, 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.0004945098100386554, 0.0002067185861970796, 0.0001945682152041312, 0.00018626318590882942, 0.00018023518002602168, 0.00017558842817919914, 0.0001722351625425735, 0.00016968046254758678, 0.00016768755682260294, 0.00016762656635738103, 0.00016973680292271703, 0.00017215876238834693, 0.00017562655214188198, 0.00018025273182608361, 0.0001861770862516818, 0.00019451984860902714, 0.00020660189934964534, 0.0004950452368787203, 1.0], [1.0, 0.0004945098100386554, 0.0002067185861970796, 0.0001945682152041312, 0.00018626318590882942, 0.00018023518002602168, 0.00017558842817919914, 0.0001722351625425735, 0.00016968046254758678, 0.00016768755682260294, 0.00016762656635738103, 0.00016973680292271703, 0.00017215876238834693, 0.00017562655214188198, 0.00018025273182608361, 0.0001861770862516818, 0.00019451984860902714, 0.00020660189934964534, 0.0004950452368787203, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }