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, 484.8488333333329, 1344.2591666666667, 1195.5583333333334, 1069.7708333333335, 965.2841666666668, 882.2916666666667, 821.5711666666666, 782.3900833333333, 765.1177500000001, 769.2039166666666, 795.69825, 843.5858333333333, 913.9425000000001, 1005.6758333333333, 1119.3016666666667, 1254.7533333333333, 1411.4191666666666, 509.6770833333329, 0.0], '_alpha0.yoda' : [0.0, 484.4058, 1344.038, 1195.813, 1069.36, 965.0893, 882.223, 821.1459, 782.4529, 765.3275, 769.7043, 796.0594, 844.0006, 913.8272, 1005.919, 1119.167, 1254.686, 1411.884, 509.3021, 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, 40.97802595429785, 113.6115152125386, 101.0441322723228, 90.41282633933456, 81.58207779081546, 74.56783824142954, 69.43596170413267, 66.12460879951495, 64.66484103952214, 65.01018082662985, 67.24935976564304, 71.29662217337743, 77.24291139717036, 84.99583323120414, 94.5991176256711, 106.04686464012032, 119.28743880038483, 43.0765468542789, 0.0], [0.0, 40.97802595429785, 113.6115152125386, 101.0441322723228, 90.41282633933456, 81.58207779081546, 74.56783824142954, 69.43596170413267, 66.12460879951495, 64.66484103952214, 65.01018082662985, 67.24935976564304, 71.29662217337743, 77.24291139717036, 84.99583323120414, 94.5991176256711, 106.04686464012032, 119.28743880038483, 43.0765468542789, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.128087, 0.2133566, 0.201248, 0.1903101, 0.1807938, 0.1728578, 0.166767, 0.1627905, 0.1609991, 0.1614588, 0.1641998, 0.1690718, 0.1759268, 0.1845786, 0.1946917, 0.2061425, 0.2186752, 0.1313373, 0.0], [0.0, 0.128087, 0.2133566, 0.201248, 0.1903101, 0.1807938, 0.1728578, 0.166767, 0.1627905, 0.1609991, 0.1614588, 0.1641998, 0.1690718, 0.1759268, 0.1845786, 0.1946917, 0.2061425, 0.2186752, 0.1313373, 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.9990862444067627, 0.9998354731943431, 1.0002130106575031, 0.9996159613624411, 0.9997981250771576, 0.9999221723730813, 0.9994823739148587, 1.0000802881682742, 1.0002741408103522, 1.0006505210419387, 1.000453878087579, 1.000491670972031, 0.999873843266945, 1.0002417942826176, 0.9998796868881042, 0.999946337394335, 1.0003293375520974, 0.9992642727216996, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451711778406099, 0.08451607995670869, 0.08451627114722365, 0.08451606972459168, 0.0845161255182874, 0.08451608584624835, 0.08451606448879272, 0.08451616426143133, 0.08451619510790612, 0.0845161853937906, 0.08451615894045643, 0.0845161444824849, 0.0845161609151236, 0.08451613374210624, 0.08451619473362507, 0.08451610513629795, 0.0845159550171794, 0.0845173311943996, 1.0], [1.0, 0.08451711778406099, 0.08451607995670869, 0.08451627114722365, 0.08451606972459168, 0.0845161255182874, 0.08451608584624835, 0.08451606448879272, 0.08451616426143133, 0.08451619510790612, 0.0845161853937906, 0.08451615894045643, 0.0845161444824849, 0.0845161609151236, 0.08451613374210624, 0.08451619473362507, 0.08451610513629795, 0.0845159550171794, 0.0845173311943996, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00026417924762116605, 0.00015871686449351593, 0.00016832972042351202, 0.00017789800775088122, 0.00018729593444417487, 0.0001959191121605667, 0.00020298545855329636, 0.00020806820468178652, 0.00021042395108465328, 0.00020990376739068003, 0.0002063593830952877, 0.0002004203879668439, 0.00019249219726623937, 0.00018353687528535953, 0.000173940328865766, 0.0001642892626970507, 0.00015493285422532759, 0.00025768727748370104, 1.0], [1.0, 0.00026417924762116605, 0.00015871686449351593, 0.00016832972042351202, 0.00017789800775088122, 0.00018729593444417487, 0.0001959191121605667, 0.00020298545855329636, 0.00020806820468178652, 0.00021042395108465328, 0.00020990376739068003, 0.0002063593830952877, 0.0002004203879668439, 0.00019249219726623937, 0.00018353687528535953, 0.000173940328865766, 0.0001642892626970507, 0.00015493285422532759, 0.00025768727748370104, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }