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.912662, 16.76312, 19.03108, 20.84003, 22.37928, 23.68991, 24.77153, 25.69268, 26.65954, 26.66039, 25.68982, 24.77857, 23.6805, 22.37848, 20.84927, 19.03266, 16.76971, 2.91151, 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.001459144, 0.003500503, 0.003729794, 0.003903034, 0.004044606, 0.004161356, 0.004255294, 0.004333692, 0.004414483, 0.004414554, 0.00433345, 0.004255899, 0.004160529, 0.004044533, 0.003903899, 0.003729949, 0.003501192, 0.001458855, 0.0], [0.0, 0.001459144, 0.003500503, 0.003729794, 0.003903034, 0.004044606, 0.004161356, 0.004255294, 0.004333692, 0.004414483, 0.004414554, 0.00433345, 0.004255899, 0.004160529, 0.004044533, 0.003903899, 0.003729949, 0.003501192, 0.001458855, 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, 1.0004423681863004, 1.000057589478181, 1.0003460589433164, 0.999606325949263, 1.0003014423034413, 1.0001867974573868, 1.0000929936703482, 0.9997809446356658, 0.9998647015692056, 0.9995972014579378, 0.9999929933826391, 1.0000439102573409, 0.9998791003914806, 1.000137040189764, 0.9998468272731427, 1.0001974429280718, 1.0001257950144937, 1.0011054710787555, 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.0005011873945156805, 0.00020883371306422313, 0.00019605218035815246, 0.00018721170155681428, 0.0001807844227048034, 0.00017569223904692255, 0.00017179761263868122, 0.00016863724148356762, 0.00016556496201274785, 0.00016551805221472551, 0.00016868236667964189, 0.00017176479020461258, 0.00017567306406843886, 0.00018075790954389339, 0.00018721523723107784, 0.00019601492655530644, 0.0002088069759404537, 0.000501618652180689, 1.0], [1.0, 0.0005011873945156805, 0.00020883371306422313, 0.00019605218035815246, 0.00018721170155681428, 0.0001807844227048034, 0.00017569223904692255, 0.00017179761263868122, 0.00016863724148356762, 0.00016556496201274785, 0.00016551805221472551, 0.00016868236667964189, 0.00017176479020461258, 0.00017567306406843886, 0.00018075790954389339, 0.00018721523723107784, 0.00019601492655530644, 0.0002088069759404537, 0.000501618652180689, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }