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, 4.492482014388488, 22.2566366906475, 19.887985611510786, 17.72364028776979, 15.918964028776971, 14.483780575539571, 13.385293165467624, 12.673755395683456, 12.328471223021568, 12.327636690647497, 12.668309352517987, 13.373010791366903, 14.44756115107914, 15.89887949640287, 17.709985611510795, 19.893758992805747, 22.373741007194262, 4.581694244604314, 0.0], '_alpha1.yoda' : [0.0, 4.49349, 22.25856, 19.88823, 17.73171, 15.91734, 14.46852, 13.38495, 12.67738, 12.33035, 12.33189, 12.66983, 13.37258, 14.45021, 15.90064, 17.71666, 19.88582, 22.37557, 4.582512, 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.37969576917383857, 1.881037026487196, 1.680853596755528, 1.4979327101441742, 1.3454093382533214, 1.2241126639685982, 1.1312735183427831, 1.0711388277353129, 1.0419558541352745, 1.0418863095038633, 1.0706790874954952, 1.1302376365420488, 1.2210526894065303, 1.3437100794440375, 1.4967787557112346, 1.6813408124753444, 1.8909370911418981, 0.3872368569971191, 0.0], [0.0, 0.37969576917383857, 1.881037026487196, 1.680853596755528, 1.4979327101441742, 1.3454093382533214, 1.2241126639685982, 1.1312735183427831, 1.0711388277353129, 1.0419558541352745, 1.0418863095038633, 1.0706790874954952, 1.1302376365420488, 1.2210526894065303, 1.3437100794440375, 1.4967787557112346, 1.6813408124753444, 1.8909370911418981, 0.3872368569971191, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001547403, 0.003443976, 0.00325544, 0.00307388, 0.002912372, 0.002776667, 0.002670669, 0.002599121, 0.0025633, 0.002563459, 0.002598347, 0.002669434, 0.002774909, 0.002910844, 0.003072575, 0.003255243, 0.003453017, 0.001562656, 0.0], [0.0, 0.001547403, 0.003443976, 0.00325544, 0.00307388, 0.002912372, 0.002776667, 0.002670669, 0.002599121, 0.0025633, 0.002563459, 0.002598347, 0.002669434, 0.002774909, 0.002910844, 0.003072575, 0.003255243, 0.003453017, 0.001562656, 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, 1.0002243716520811, 1.0000864150940338, 1.0000122882474871, 1.000455307831754, 0.9998979815034423, 0.9989463679417138, 0.999974362498947, 1.0002859929202814, 1.0001523933458127, 1.0003450222827972, 1.0001200355501036, 0.9999677865086909, 1.0001833422882354, 1.0001107313001225, 1.0003768714800574, 0.9996009304823378, 1.000081747294972, 1.0001784831881022, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451803879409017, 0.0845157807368815, 0.08451603041097748, 0.08451608618901071, 0.08451613659162764, 0.08451610113701241, 0.08451615548184829, 0.08451629326064879, 0.08451622551461031, 0.08451630557009376, 0.08451633581892948, 0.08451631829024518, 0.08451618073375142, 0.08451602389640431, 0.08451609100903996, 0.08451599383924244, 0.08451591043866417, 0.08451826689507995, 1.0], [1.0, 0.08451803879409017, 0.0845157807368815, 0.08451603041097748, 0.08451608618901071, 0.08451613659162764, 0.08451610113701241, 0.08451615548184829, 0.08451629326064879, 0.08451622551461031, 0.08451630557009376, 0.08451633581892948, 0.08451631829024518, 0.08451618073375142, 0.08451602389640431, 0.08451609100903996, 0.08451599383924244, 0.08451591043866417, 0.08451826689507995, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0003444427813052983, 0.00015473928284264078, 0.0001636887749011551, 0.00017343389676674568, 0.00018294984489790025, 0.00019170871759057698, 0.00019952263779249833, 0.00020507899346749523, 0.00020791710128774299, 0.00020794407430459058, 0.00020510605856680834, 0.00019961353816623577, 0.00019206764179660398, 0.0001830848520273759, 0.00017349392977501613, 0.00016363136806760379, 0.00015433346613289591, 0.00034106509875474124, 1.0], [1.0, 0.0003444427813052983, 0.00015473928284264078, 0.0001636887749011551, 0.00017343389676674568, 0.00018294984489790025, 0.00019170871759057698, 0.00019952263779249833, 0.00020507899346749523, 0.00020791710128774299, 0.00020794407430459058, 0.00020510605856680834, 0.00019961353816623577, 0.00019206764179660398, 0.0001830848520273759, 0.00017349392977501613, 0.00016363136806760379, 0.00015433346613289591, 0.00034106509875474124, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }