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, 509.6869999999995, 1411.4775, 1254.6625000000001, 1119.5141666666668, 1005.6925, 913.8133333333334, 843.4975000000001, 795.66725, 769.3806666666668, 764.9873333333334, 782.3745833333334, 821.5636666666667, 882.3641666666667, 965.3025, 1069.8133333333333, 1195.4216666666669, 1344.2866666666669, 484.8450833333329, 0.0], '_alpha0.yoda' : [0.0, 509.3255, 1411.913, 1254.686, 1119.191, 1005.84, 913.8664, 844.0109, 796.0315, 769.6895, 765.3666, 782.3909, 821.1579, 882.2233, 965.0656, 1069.371, 1195.798, 1344.001, 484.4756, 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, 43.07732872405155, 119.29238706267518, 106.03916991166781, 94.61706446983487, 84.99726302783061, 77.23192435054878, 71.28910720127975, 67.24677811365142, 65.02509131097011, 64.6538110073782, 66.12329077816177, 69.4353416256208, 74.57395192394966, 81.58364402392323, 90.41647465417401, 101.03251676784285, 113.61383791892018, 40.977737858500646, 0.0], [0.0, 43.07732872405155, 119.29238706267518, 106.03916991166781, 94.61706446983487, 84.99726302783061, 77.23192435054878, 71.28910720127975, 67.24677811365142, 65.02509131097011, 64.6538110073782, 66.12329077816177, 69.4353416256208, 74.57395192394966, 81.58364402392323, 90.41647465417401, 101.03251676784285, 113.61383791892018, 40.977737858500646, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.1313403, 0.2186775, 0.2061425, 0.1946938, 0.1845713, 0.1759305, 0.1690729, 0.1641969, 0.1614573, 0.1610033, 0.162784, 0.1667682, 0.1728579, 0.1807916, 0.1903111, 0.2012468, 0.2133536, 0.1280962, 0.0], [0.0, 0.1313403, 0.2186775, 0.2061425, 0.1946938, 0.1845713, 0.1759305, 0.1690729, 0.1641969, 0.1614573, 0.1610033, 0.162784, 0.1667682, 0.1728579, 0.1807916, 0.1903111, 0.2012468, 0.2133536, 0.1280962, 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.9992907411803724, 1.0003085419356668, 1.0000187301365904, 0.9997113331154808, 1.0001466651088677, 1.0000580716703629, 1.0006086562200835, 1.0004577918721678, 1.0004014051128567, 1.0004957816294997, 1.0000208553128056, 0.9995061044163346, 0.9998403531421738, 0.9997545847027227, 0.9995865322299219, 1.000314812207129, 0.9997874957226384, 0.9992379352786405, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451722081208975, 0.08451596788661185, 0.08451609091023905, 0.08451618325791756, 0.08451615481653747, 0.08451608390176196, 0.08451608594130954, 0.0845162071376589, 0.08451614932396287, 0.08451618502708741, 0.08451615400955545, 0.08451608127625831, 0.08451607028158215, 0.08451614289191546, 0.08451612242712811, 0.08451621681708645, 0.08451607885142566, 0.08451717727397946, 1.0], [1.0, 0.08451722081208975, 0.08451596788661185, 0.08451609091023905, 0.08451618325791756, 0.08451615481653747, 0.08451608390176196, 0.08451608594130954, 0.0845162071376589, 0.08451614932396287, 0.08451618502708741, 0.08451615400955545, 0.08451608127625831, 0.08451607028158215, 0.08451614289191546, 0.08451612242712811, 0.08451621681708645, 0.08451607885142566, 0.08451717727397946, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0002576881497860454, 0.00015492808068141362, 0.00016430115668556285, 0.00017390918828628785, 0.00018352657497197204, 0.0001925234548266604, 0.00020044268062442388, 0.00020636377832567574, 0.0002098535965291563, 0.0002104653148941028, 0.00020806401878043288, 0.00020298877222337406, 0.00019590312767687565, 0.00018729009818165807, 0.0001778918752181066, 0.00016834796090082577, 0.00015871138596430323, 0.00026420026602999157, 1.0], [1.0, 0.0002576881497860454, 0.00015492808068141362, 0.00016430115668556285, 0.00017390918828628785, 0.00018352657497197204, 0.0001925234548266604, 0.00020044268062442388, 0.00020636377832567574, 0.0002098535965291563, 0.0002104653148941028, 0.00020806401878043288, 0.00020298877222337406, 0.00019590312767687565, 0.00018729009818165807, 0.0001778918752181066, 0.00016834796090082577, 0.00015871138596430323, 0.00026420026602999157, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }