import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha0.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha0.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha0.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 379.6482499999996, 965.9558333333333, 853.5925000000001, 760.8165, 684.3996666666667, 623.5765833333334, 577.0800833333334, 546.7475000000001, 531.1790000000001, 531.31225, 546.7310833333333, 576.9680833333333, 622.4501666666666, 683.4936666666666, 759.976, 852.5141666666667, 964.005, 378.6219999999997, 0.0], '_alpha0.yoda' : [0.0, 379.6915, 965.9064, 853.785, 761.0138, 684.3181, 622.956, 577.1232, 546.7954, 531.3884, 531.4534, 546.8769, 576.9448, 622.536, 683.6905, 760.2428, 852.1978, 963.8866, 378.6862, 0.0], } xerrs = { 'alpha0.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha0.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha0.yoda' : [ [0.0, 32.086601565139276, 81.63854107521085, 72.14216770454789, 64.30129275527825, 57.84278260941464, 52.70232837993656, 48.772601598301755, 46.20908851201364, 44.8932839570068, 44.90456701593824, 46.20769837255356, 48.76323182252975, 52.607126154374015, 57.766243506817105, 64.23010392331621, 72.05103322568586, 81.47367502587706, 31.99991319432668, 0.0], [0.0, 32.086601565139276, 81.63854107521085, 72.14216770454789, 64.30129275527825, 57.84278260941464, 52.70232837993656, 48.772601598301755, 46.20908851201364, 44.8932839570068, 44.90456701593824, 46.20769837255356, 48.76323182252975, 52.607126154374015, 57.766243506817105, 64.23010392331621, 72.05103322568586, 81.47367502587706, 31.99991319432668, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.09481935, 0.1512339, 0.1421857, 0.1342387, 0.1272948, 0.1214536, 0.1169003, 0.1137873, 0.1121728, 0.1121797, 0.1137958, 0.1168823, 0.1214126, 0.1272364, 0.1341707, 0.1420534, 0.1510757, 0.09469374, 0.0], [0.0, 0.09481935, 0.1512339, 0.1421857, 0.1342387, 0.1272948, 0.1214536, 0.1169003, 0.1137873, 0.1121728, 0.1121797, 0.1137958, 0.1168823, 0.1214126, 0.1272364, 0.1341707, 0.1420534, 0.1510757, 0.09469374, 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.0001139212415713, 0.9999488244372802, 1.0002255174453851, 1.0002593266576105, 0.9998808201250827, 0.9990048001321409, 1.000074715222223, 1.0000876089968402, 1.0003942173918772, 1.0002656629881959, 1.0002667063774344, 0.9999596453703318, 1.0001378959118816, 1.0002879812102625, 1.0003510637178017, 0.9996289015725056, 0.9998771790602746, 1.0001695622547033, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451665868376664, 0.08451581144604871, 0.08451593436510733, 0.084516164877179, 0.0845160882253712, 0.0845162082549923, 0.08451617549609608, 0.08451632337050217, 0.08451630045052005, 0.08451634046822419, 0.08451631849945772, 0.08451634194530937, 0.08451620542748779, 0.0845161357361767, 0.08451596356110747, 0.08451593655904352, 0.08451582204021459, 0.08451678242238092, 1.0], [1.0, 0.08451665868376664, 0.08451581144604871, 0.08451593436510733, 0.084516164877179, 0.0845160882253712, 0.0845162082549923, 0.08451617549609608, 0.08451632337050217, 0.08451630045052005, 0.08451634046822419, 0.08451631849945772, 0.08451634194530937, 0.08451620542748779, 0.0845161357361767, 0.08451596356110747, 0.08451593655904352, 0.08451582204021459, 0.08451678242238092, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00024975579368533924, 0.00015656399058963186, 0.00016657327706136123, 0.00017644031116570156, 0.00018599483050595682, 0.0001947693406810898, 0.0002025720578065349, 0.00020811672664255434, 0.00021117702318804017, 0.00021113704794120596, 0.00020813852270151704, 0.00020258018316148915, 0.00019505593620479925, 0.0001861559312180898, 0.00017654596987273284, 0.00016662878524990296, 0.00015671671827428282, 0.00025010099782896947, 1.0], [1.0, 0.00024975579368533924, 0.00015656399058963186, 0.00016657327706136123, 0.00017644031116570156, 0.00018599483050595682, 0.0001947693406810898, 0.0002025720578065349, 0.00020811672664255434, 0.00021117702318804017, 0.00021113704794120596, 0.00020813852270151704, 0.00020258018316148915, 0.00019505593620479925, 0.0001861559312180898, 0.00017654596987273284, 0.00016662878524990296, 0.00015671671827428282, 0.00025010099782896947, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }