import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 2.178908273381294, 12.449901079136703, 13.701739208633088, 14.766902877697847, 15.638384892086325, 16.362854316546766, 16.91758273381295, 17.356219424460434, 18.400593525179833, 18.400953237410096, 17.348803956834534, 16.920562949640285, 16.35700539568346, 15.640339928057548, 14.763255395683455, 13.69762589928057, 12.439663669064759, 2.178152877697841, 0.0], '_alpha0.yoda' : [0.0, 2.179135, 12.44994, 13.70816, 14.75947, 15.63922, 16.35912, 16.91397, 17.35606, 18.40077, 18.40212, 17.3546, 16.91559, 16.35608, 15.64507, 14.75839, 13.70653, 12.44539, 2.179002, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.18416054226085257, 1.0522180699972992, 1.1580189295555778, 1.2480397133633965, 1.3216933157309152, 1.3829220782306735, 1.429804645922215, 1.4668778510443814, 1.5551432446436213, 1.5551753815461202, 1.4662503251644032, 1.4300571099851058, 1.3824317115089861, 1.3218594893953235, 1.2477324031158317, 1.157671516849396, 1.0513543014565268, 0.18409703300488797, 0.0], [0.0, 0.18416054226085257, 1.0522180699972992, 1.1580189295555778, 1.2480397133633965, 1.3216933157309152, 1.3829220782306735, 1.429804645922215, 1.4668778510443814, 1.5551432446436213, 1.5551753815461202, 1.4662503251644032, 1.4300571099851058, 1.3824317115089861, 1.3218594893953235, 1.2477324031158317, 1.157671516849396, 1.0513543014565268, 0.18409703300488797, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001055302, 0.002522426, 0.00264682, 0.00274644, 0.002827108, 0.002891444, 0.002940069, 0.002978244, 0.003066569, 0.003066682, 0.002978119, 0.00294021, 0.002891175, 0.002827636, 0.00274634, 0.002646662, 0.002521965, 0.00105527, 0.0], [0.0, 0.001055302, 0.002522426, 0.00264682, 0.00274644, 0.002827108, 0.002891444, 0.002940069, 0.002978244, 0.003066569, 0.003066682, 0.002978119, 0.00294021, 0.002891175, 0.002827636, 0.00274634, 0.002646662, 0.002521965, 0.00105527, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 1.0001040551460914, 1.0000031261985978, 1.0004686114126933, 0.9994966529028187, 1.0000534011612732, 0.9997717808595906, 0.9997864509445709, 0.9999908145629797, 1.0000095907134694, 1.000063407725396, 1.000334088919322, 0.9997061002252062, 0.9999434251159626, 1.0003024276942962, 0.9996704388325575, 1.0006500470070436, 1.000460328437133, 1.0003898359526797, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451963972538726, 0.08451617914945407, 0.08451619987234482, 0.08451601014104897, 0.08451597302735189, 0.08451594394702934, 0.08451589499630364, 0.0845159775392724, 0.0845159283865232, 0.0845160227017135, 0.08451593140441109, 0.08451592977380859, 0.08451618606629571, 0.08451603324963615, 0.08451607519305322, 0.08451621655911916, 0.08451629637472102, 0.08451979422099425, 1.0], [1.0, 0.08451963972538726, 0.08451617914945407, 0.08451619987234482, 0.08451601014104897, 0.08451597302735189, 0.08451594394702934, 0.08451589499630364, 0.0845159775392724, 0.0845159283865232, 0.0845160227017135, 0.08451593140441109, 0.08451592977380859, 0.08451618606629571, 0.08451603324963615, 0.08451607519305322, 0.08451621655911916, 0.08451629637472102, 0.08451979422099425, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0004843260328542198, 0.0002026061077888427, 0.00019317401679432868, 0.00018598618970724678, 0.00018078004982666942, 0.00017670780073352223, 0.0001737877713536298, 0.00017159520326199073, 0.0001666559829064008, 0.00016665886600729333, 0.00017166134376812614, 0.00017376549519958532, 0.00017675454217084066, 0.00018079121125286044, 0.00018602536679023968, 0.00019322049086907891, 0.0002027357866814101, 0.00048447930850260086, 1.0], [1.0, 0.0004843260328542198, 0.0002026061077888427, 0.00019317401679432868, 0.00018598618970724678, 0.00018078004982666942, 0.00017670780073352223, 0.0001737877713536298, 0.00017159520326199073, 0.0001666559829064008, 0.00016665886600729333, 0.00017166134376812614, 0.00017376549519958532, 0.00017675454217084066, 0.00018079121125286044, 0.00018602536679023968, 0.00019322049086907891, 0.0002027357866814101, 0.00048447930850260086, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }