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.911374100719423, 16.76215467625901, 19.02449640287769, 20.84823741007195, 22.372535971223012, 23.6854856115108, 24.769226618705037, 25.698309352517988, 26.663147482014356, 26.671133093525217, 25.69, 24.777482014388486, 23.683363309352522, 22.37541366906474, 20.852464028776982, 19.028902877697835, 16.767600719424475, 2.908294964028776, 0.0], '_alpha0.yoda' : [0.0, 2.911265, 16.77234, 19.0334, 20.84664, 22.37683, 23.68401, 24.77545, 25.69224, 26.65914, 26.65806, 25.68884, 24.77436, 23.68997, 22.38032, 20.8368, 19.03339, 16.76438, 2.913324, 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.24606978746546043, 1.4166713730080325, 1.6078783613524814, 1.7620108981374134, 1.8908395788442125, 2.001806640924311, 2.0933930648812598, 2.171916560667975, 2.253462908036098, 2.254136769575804, 2.1712179262494384, 2.0940929475596333, 2.001624838137878, 1.891084205443272, 1.7623687645712287, 1.6082508136392935, 1.4171331146671073, 0.24581087313771324, 0.0], [0.0, 0.24606978746546043, 1.4166713730080325, 1.6078783613524814, 1.7620108981374134, 1.8908395788442125, 2.001806640924311, 2.0933930648812598, 2.171916560667975, 2.253462908036098, 2.254136769575804, 2.1712179262494384, 2.0940929475596333, 2.001624838137878, 1.891084205443272, 1.7623687645712287, 1.6082508136392935, 1.4171331146671073, 0.24581087313771324, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001458794, 0.003501466, 0.003730021, 0.003903652, 0.004044384, 0.004160838, 0.004255631, 0.004333655, 0.00441445, 0.00441436, 0.004333367, 0.004255537, 0.004161361, 0.004044699, 0.003902731, 0.00373002, 0.003500635, 0.00145931, 0.0], [0.0, 0.001458794, 0.003501466, 0.003730021, 0.003903652, 0.004044384, 0.004160838, 0.004255631, 0.004333655, 0.00441445, 0.00441436, 0.004333367, 0.004255537, 0.004161361, 0.004044699, 0.003902731, 0.00373002, 0.003500635, 0.00145931, 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, 0.9999625260390289, 1.000607638095323, 1.0004680069807768, 0.9999233791307856, 1.000191933037118, 0.9999376997569313, 1.000251254566433, 0.9997638228867616, 0.999849699589403, 0.9995098410900138, 0.9999548462436745, 0.9998739979152574, 1.0002789591394254, 1.0002192733063096, 0.9992488164105995, 1.0002358056232146, 0.9998079200788252, 1.0017292042359613, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.084520154041576, 0.08451606612451368, 0.08451621148348872, 0.08451606068559887, 0.08451610408745487, 0.08451617474760419, 0.08451588324119845, 0.08451593180215045, 0.08451601258089178, 0.08451597319361832, 0.08451607342348923, 0.08451597084576941, 0.08451607197814845, 0.08451616731706736, 0.08451609182200773, 0.08451621325600374, 0.08451615340681541, 0.08452061299765778, 1.0], [1.0, 0.084520154041576, 0.08451606612451368, 0.08451621148348872, 0.08451606068559887, 0.08451610408745487, 0.08451617474760419, 0.08451588324119845, 0.08451593180215045, 0.08451601258089178, 0.08451597319361832, 0.08451607342348923, 0.08451597084576941, 0.08451607197814845, 0.08451616731706736, 0.08451609182200773, 0.08451621325600374, 0.08451615340681541, 0.08452061299765778, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0005010671763685474, 0.0002088911639121958, 0.00019606411234285225, 0.00018724134435048762, 0.0001807744998243447, 0.00017567036911322155, 0.00017181121823102322, 0.000168635801700137, 0.00016556372434941414, 0.00016551077843301852, 0.0001686791358505255, 0.00017175018016474697, 0.00017570819421398163, 0.00018076532840114693, 0.00018715922466592543, 0.00019601865772154634, 0.00020877375711509397, 0.0005017751012361073, 1.0], [1.0, 0.0005010671763685474, 0.0002088911639121958, 0.00019606411234285225, 0.00018724134435048762, 0.0001807744998243447, 0.00017567036911322155, 0.00017181121823102322, 0.000168635801700137, 0.00016556372434941414, 0.00016551077843301852, 0.0001686791358505255, 0.00017175018016474697, 0.00017570819421398163, 0.00018076532840114693, 0.00018715922466592543, 0.00019601865772154634, 0.00020877375711509397, 0.0005017751012361073, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }