import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [0.01375, 0.04125, 0.06875, 0.09625, 0.12375, 0.15125, 0.17875000000000002, 0.20625, 0.23375, 0.26125, 0.28875, 0.31625000000000003, 0.34375, 0.37124999999999997, 0.39875, 0.42625, 0.45375, 0.48125, 0.50875, 0.53625, 0.56375, 0.59125, 0.6187499999999999, 0.64625, 0.6737500000000001, 0.7012499999999999, 0.72875, 0.7562500000000001, 0.78375, 0.81125, 0.83875, 0.86625, 0.89375, 0.92125, 0.94875, 0.9762500000000001, 1.0037500000000001, 1.03125, 1.0587499999999999, 1.0862500000000002], } xedges = { 'alpha3.yoda' : [0.0, 0.0275, 0.055, 0.0825, 0.11, 0.1375, 0.165, 0.1925, 0.22, 0.2475, 0.275, 0.3025, 0.33, 0.3575, 0.385, 0.4125, 0.44, 0.4675, 0.495, 0.5225, 0.55, 0.5775, 0.605, 0.6325, 0.66, 0.6875, 0.715, 0.7425, 0.77, 0.7975, 0.825, 0.8525, 0.88, 0.9075, 0.935, 0.9625, 0.99, 1.0175, 1.045, 1.0725, 1.1], } ref_xerrs = [ [abs(xpoints['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [43539.23636363636, 3029.792727272727, 1417.6123636363636, 899.6429090909091, 651.8101818181815, 507.2843636363637, 412.86363636363643, 346.7511272727273, 296.36000000000007, 257.69901818181796, 227.00690909090935, 202.48683636363617, 181.1246181818184, 163.74959999999984, 148.71054545454564, 135.59683636363624, 124.4253818181817, 114.86567272727285, 105.92898181818194, 98.54399999999971, 91.5528000000001, 85.6505090909092, 80.23410909090917, 75.03719999999979, 70.98236363636371, 67.10810909090917, 63.47596363636345, 60.45316363636371, 57.494945454545515, 54.89385454545461, 52.56352727272712, 50.70021818181824, 49.62763636363642, 49.17090909090895, 51.05352727272733, 66.18098181818189, 201.12825454545396, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.yoda' : [ [0.01375, 0.013749999999999998, 0.013749999999999998, 0.013749999999999998, 0.013750000000000012, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151, 0.013749999999999929], [0.01375, 0.013750000000000002, 0.013750000000000005, 0.013749999999999998, 0.013749999999999998, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013750000000000151, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151], ], } yerrs = { 'alpha3.yoda' : [ [2810.449215586083, 195.57521856232827, 91.50944312921034, 58.07467407222396, 42.07701714595303, 32.7479651755723, 26.652712326893962, 22.385869214660126, 19.132671204983808, 16.636496770455853, 14.655736473144175, 13.07278037667807, 11.693790115814785, 10.572194311588454, 9.60119896094251, 8.754618521360328, 8.033908304469747, 7.416506941047901, 6.839609480901652, 6.363017112727206, 5.911308115498947, 5.53079791891141, 5.18080372845057, 4.845372334284653, 4.583490315368238, 4.333555408592221, 4.098891605872753, 3.9041880458708307, 3.7128839785288954, 3.5450787679647413, 3.3946328079523385, 3.2744383405831625, 3.205158858120007, 3.1755008455099882, 3.2969519607366107, 4.273107913412609, 12.982994599102689, 0.0, 0.0, 0.0], [2810.449215586083, 195.57521856232827, 91.50944312921034, 58.07467407222396, 42.07701714595303, 32.7479651755723, 26.652712326893962, 22.385869214660126, 19.132671204983808, 16.636496770455853, 14.655736473144175, 13.07278037667807, 11.693790115814785, 10.572194311588454, 9.60119896094251, 8.754618521360328, 8.033908304469747, 7.416506941047901, 6.839609480901652, 6.363017112727206, 5.911308115498947, 5.53079791891141, 5.18080372845057, 4.845372334284653, 4.583490315368238, 4.333555408592221, 4.098891605872753, 3.9041880458708307, 3.7128839785288954, 3.5450787679647413, 3.3946328079523385, 3.2744383405831625, 3.205158858120007, 3.1755008455099882, 3.2969519607366107, 4.273107913412609, 12.982994599102689, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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, 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], } ratio0_yerrs = { 'alpha3.yoda' : [ [0.06454980496473174, 0.06455069246217897, 0.06455180942022577, 0.06455302819082799, 0.06455409614587788, 0.06455543975537752, 0.06455572731384643, 0.06455889384046085, 0.06455888515651169, 0.06455785857405974, 0.064560750735895, 0.06456113696794248, 0.06456212431639857, 0.06456317640829941, 0.06456300009925779, 0.06456358980148082, 0.06456808238860304, 0.0645667827903382, 0.0645678771145111, 0.06457031491239675, 0.06456720182778616, 0.06457402270710426, 0.06457108812139319, 0.06457293628073364, 0.06457224133658113, 0.06457573409975977, 0.06457391697673452, 0.06458203030291683, 0.06457757197916181, 0.0645806128449088, 0.06458152609011958, 0.06458430472311891, 0.06458415296337824, 0.06458088541009091, 0.06457833840009394, 0.06456700695604758, 0.06455082419147927, 1.0, 1.0, 1.0], [0.06454980496473174, 0.06455069246217897, 0.06455180942022577, 0.06455302819082799, 0.06455409614587788, 0.06455543975537752, 0.06455572731384643, 0.06455889384046085, 0.06455888515651169, 0.06455785857405974, 0.064560750735895, 0.06456113696794248, 0.06456212431639857, 0.06456317640829941, 0.06456300009925779, 0.06456358980148082, 0.06456808238860304, 0.0645667827903382, 0.0645678771145111, 0.06457031491239675, 0.06456720182778616, 0.06457402270710426, 0.06457108812139319, 0.06457293628073364, 0.06457224133658113, 0.06457573409975977, 0.06457391697673452, 0.06458203030291683, 0.06457757197916181, 0.0645806128449088, 0.06458152609011958, 0.06458430472311891, 0.06458415296337824, 0.06458088541009091, 0.06457833840009394, 0.06456700695604758, 0.06455082419147927, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }