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.012577338129496, 12.379908273381306, 14.03369244604316, 15.333750000000004, 16.397766187050355, 17.287550359712235, 17.988111510791366, 18.567823741007196, 19.40235611510789, 19.409244604316573, 18.565935251798564, 17.984451438848918, 17.272879496402883, 16.399341726618697, 15.331181654676262, 14.043390287769778, 12.383920863309363, 2.0105071942446036, 0.0], '_alpha1.yoda' : [0.0, 2.010273, 12.38831, 14.04234, 15.33184, 16.39683, 17.28253, 17.99061, 18.56305, 19.40528, 19.40917, 18.56703, 17.98933, 17.28208, 16.39556, 15.32298, 14.04328, 12.38151, 2.009306, 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.1701041160726266, 1.0463031143166035, 1.1860724661826054, 1.2959486165062253, 1.385875923545081, 1.4610757386468436, 1.52028300527485, 1.569278977587299, 1.6398091683128837, 1.640392288100089, 1.5691212769249767, 1.5199716797189553, 1.4598365906795814, 1.386008496101471, 1.2957333096715753, 1.1868929751781316, 1.0466423699165988, 0.1699284439928841, 0.0], [0.0, 0.1701041160726266, 1.0463031143166035, 1.1860724661826054, 1.2959486165062253, 1.385875923545081, 1.4610757386468436, 1.52028300527485, 1.569278977587299, 1.6398091683128837, 1.640392288100089, 1.5691212769249767, 1.5199716797189553, 1.4598365906795814, 1.386008496101471, 1.2957333096715753, 1.1868929751781316, 1.0466423699165988, 0.1699284439928841, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001035725, 0.002571125, 0.002737391, 0.002860318, 0.002957993, 0.003036832, 0.003098418, 0.003147326, 0.003217934, 0.003218256, 0.003147664, 0.003098308, 0.003036793, 0.002957878, 0.002859491, 0.002737483, 0.002570419, 0.001035476, 0.0], [0.0, 0.001035725, 0.002571125, 0.002737391, 0.002860318, 0.002957993, 0.003036832, 0.003098418, 0.003147326, 0.003217934, 0.003218256, 0.003147664, 0.003098308, 0.003036793, 0.002957878, 0.002859491, 0.002737483, 0.002570419, 0.001035476, 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.9988550312647179, 1.0006786582285718, 1.0006161994777987, 0.9998754381674408, 0.9999429076473176, 0.9997095968134425, 1.0001388966933598, 0.999742902503073, 1.000150697414003, 0.9999961562483191, 1.0000589654217031, 1.0002712654966246, 1.0005326560402992, 0.9997693976574341, 0.9994650344075885, 0.99999214664212, 0.9998053231011428, 0.9994025416829931, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08452053635400796, 0.08451622509726628, 0.08451606522964823, 0.0845160914000962, 0.08451614126804266, 0.08451606550641247, 0.08451598737103709, 0.08451604234703786, 0.08451598138826169, 0.08451602942523942, 0.08451614506050639, 0.08451587666641891, 0.08451611041364561, 0.08451610553683153, 0.08451620617751635, 0.08451612828931933, 0.08451623532394763, 0.08452018698531956, 1.0], [1.0, 0.08452053635400796, 0.08451622509726628, 0.08451606522964823, 0.0845160914000962, 0.08451614126804266, 0.08451606550641247, 0.08451598737103709, 0.08451604234703786, 0.08451598138826169, 0.08451602942523942, 0.08451614506050639, 0.08451587666641891, 0.08451611041364561, 0.08451610553683153, 0.08451620617751635, 0.08451612828931933, 0.08451623532394763, 0.08452018698531956, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0005146261862227915, 0.00020768530292977305, 0.00019505850014347545, 0.0001865374093095296, 0.00018038999740928045, 0.00017566583679068748, 0.0001722480983143343, 0.00016950430184497627, 0.00016585274390950463, 0.00016581047153603633, 0.0001695397488631806, 0.0001722770366688652, 0.0001758127821497521, 0.00018036565426275016, 0.00018651471650443907, 0.00019493035114063884, 0.0002075610001365194, 0.0005150322281682029, 1.0], [1.0, 0.0005146261862227915, 0.00020768530292977305, 0.00019505850014347545, 0.0001865374093095296, 0.00018038999740928045, 0.00017566583679068748, 0.0001722480983143343, 0.00016950430184497627, 0.00016585274390950463, 0.00016581047153603633, 0.0001695397488631806, 0.0001722770366688652, 0.0001758127821497521, 0.00018036565426275016, 0.00018651471650443907, 0.00019493035114063884, 0.0002075610001365194, 0.0005150322281682029, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }