import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 2.0127014388489197, 12.386838129496413, 14.044757194244598, 15.329534172661873, 16.388848920863303, 17.270856115107918, 17.992212230215824, 18.56474820143885, 19.409999999999975, 19.404316546762615, 18.558812949640288, 17.998057553956833, 17.273032374100723, 16.399384892086324, 15.32456115107914, 14.043888489208626, 12.388392086330946, 2.0135017985611503, 0.0], '_alpha1.yoda' : [0.0, 2.010921, 12.38803, 14.04793, 15.32807, 16.3992, 17.27876, 17.98897, 18.57075, 19.40794, 19.40728, 18.56669, 17.98722, 17.27677, 16.39405, 15.32121, 14.03992, 12.38791, 2.009685, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.17011593455306248, 1.0468877400525065, 1.1870082562840563, 1.295591749338258, 1.385123427374859, 1.4596640742541542, 1.5206295805372543, 1.5690178867784106, 1.640455488869527, 1.6399736817486825, 1.5685163014847485, 1.52112579665524, 1.4598477808289971, 1.386010363230017, 1.2951718458346528, 1.1869348101598385, 1.0470192088222023, 0.1701826940240163, 0.0], [0.0, 0.17011593455306248, 1.0468877400525065, 1.1870082562840563, 1.295591749338258, 1.385123427374859, 1.4596640742541542, 1.5206295805372543, 1.5690178867784106, 1.640455488869527, 1.6399736817486825, 1.5685163014847485, 1.52112579665524, 1.4598477808289971, 1.386010363230017, 1.2951718458346528, 1.1869348101598385, 1.0470192088222023, 0.1701826940240163, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001035892, 0.002571096, 0.002737936, 0.002859966, 0.002958206, 0.003036501, 0.003098277, 0.003147979, 0.003218154, 0.003218099, 0.003147635, 0.003098126, 0.003036326, 0.002957742, 0.002859326, 0.002737155, 0.002571084, 0.001035574, 0.0], [0.0, 0.001035892, 0.002571096, 0.002737936, 0.002859966, 0.002958206, 0.003036501, 0.003098277, 0.003147979, 0.003218154, 0.003218099, 0.003147635, 0.003098126, 0.003036326, 0.002957742, 0.002859326, 0.002737155, 0.002571084, 0.001035574, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 0.9991153984319017, 1.0000962207216344, 1.0002259067715817, 0.9999044868131425, 1.0006315928096403, 1.0004576429123955, 0.999819798134085, 1.0003232900600658, 0.99989386913962, 1.0001527213406483, 1.000424437186855, 0.9993978486887075, 1.0002163850456784, 0.9996746895007691, 0.9997813215630711, 0.9997174223355821, 0.9999610856414952, 0.9981043977393625, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08452119686979166, 0.08451613955942344, 0.08451611087804925, 0.08451605474410101, 0.08451621185009349, 0.08451602309264178, 0.0845159873105284, 0.08451597995047436, 0.08451599633536987, 0.08451592086722029, 0.0845159820157113, 0.08451610914650197, 0.08451601022979038, 0.0845159969322294, 0.08451608062808691, 0.08451610898732807, 0.08451615040320351, 0.08452075590179704, 1.0], [1.0, 0.08452119686979166, 0.08451613955942344, 0.08451611087804925, 0.08451605474410101, 0.08451621185009349, 0.08451602309264178, 0.0845159873105284, 0.08451597995047436, 0.08451599633536987, 0.08451592086722029, 0.0845159820157113, 0.08451610914650197, 0.08451601022979038, 0.0845159969322294, 0.08451608062808691, 0.08451610898732807, 0.08451615040320351, 0.08452075590179704, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0005146774280602865, 0.00020756677152965493, 0.0001949436335661238, 0.00018656574738587674, 0.00018050114527775956, 0.0001758164725455491, 0.0001722010034317406, 0.00016956755706258475, 0.00016579876352395694, 0.00016584449095358126, 0.00016960325040945082, 0.00017213668701258732, 0.00017578418972644802, 0.0001803568865212308, 0.00018658452740088086, 0.00019490008070793493, 0.0002075397664267401, 0.0005143149118317261, 1.0], [1.0, 0.0005146774280602865, 0.00020756677152965493, 0.0001949436335661238, 0.00018656574738587674, 0.00018050114527775956, 0.0001758164725455491, 0.0001722010034317406, 0.00016956755706258475, 0.00016579876352395694, 0.00016584449095358126, 0.00016960325040945082, 0.00017213668701258732, 0.00017578418972644802, 0.0001803568865212308, 0.00018658452740088086, 0.00019490008070793493, 0.0002075397664267401, 0.0005143149118317261, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }