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.009786, 12.38887, 14.03941, 15.31968, 16.39697, 17.27409, 17.98835, 18.56675, 19.40566, 19.40914, 18.57168, 17.98821, 17.27958, 16.3983, 15.32834, 14.04695, 12.38871, 2.01085, 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.0010356, 0.002571183, 0.002737105, 0.002859183, 0.002958005, 0.00303609, 0.003098223, 0.00314764, 0.003217965, 0.003218253, 0.003148058, 0.003098212, 0.003036573, 0.002958125, 0.002859991, 0.00273784, 0.002571166, 0.001035874, 0.0], [0.0, 0.0010356, 0.002571183, 0.002737105, 0.002859183, 0.002958005, 0.00303609, 0.003098223, 0.00314764, 0.003217965, 0.003218253, 0.003148058, 0.003098212, 0.003036573, 0.002958125, 0.002859991, 0.00273784, 0.002571166, 0.001035874, 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.9985514797214101, 1.0001640346376004, 0.9996192747107946, 0.9993571772924812, 1.000495524681197, 1.0001872451991105, 0.9997853387806678, 1.0001078279403215, 0.9997764039155088, 1.0002485763013482, 1.0006933121420334, 0.9994528546245998, 1.0003790663826402, 0.99993384556229, 1.0002465877413131, 1.0002179959484674, 1.0000256622220898, 0.9986829917097441, 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.0005145323494140632, 0.00020757379511380855, 0.00019488446557991323, 0.00018651466951285196, 0.00018048888084107027, 0.00017579267523073965, 0.00017219800213321717, 0.00016954929664793645, 0.00016578902627511615, 0.00016585242733204784, 0.00016962604281547095, 0.00017214146530600825, 0.00017579848947386063, 0.00018038024105571608, 0.00018662792179197917, 0.00019494885637291737, 0.00020754638552625105, 0.0005144639059871892, 1.0], [1.0, 0.0005145323494140632, 0.00020757379511380855, 0.00019488446557991323, 0.00018651466951285196, 0.00018048888084107027, 0.00017579267523073965, 0.00017219800213321717, 0.00016954929664793645, 0.00016578902627511615, 0.00016585242733204784, 0.00016962604281547095, 0.00017214146530600825, 0.00017579848947386063, 0.00018038024105571608, 0.00018662792179197917, 0.00019494885637291737, 0.00020754638552625105, 0.0005144639059871892, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }