import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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' : [0.0, 381.224583333333, 1008.4425, 894.095, 797.40575, 717.2447500000001, 653.1741666666667, 605.2781666666667, 573.4509166666667, 557.0279166666667, 556.8278333333333, 572.7463333333334, 604.6015000000001, 653.147, 716.5460833333333, 796.4026666666667, 892.8608333333333, 1007.3575000000001, 381.14624999999967, 0.0], '_alpha3.yoda' : [0.0, 381.4521, 1008.436, 893.7309, 797.7253, 717.4623, 653.221, 605.2323, 573.5002, 557.1891, 556.9409, 572.9008, 604.6396, 652.4434, 716.4357, 796.55, 892.9925, 1007.439, 381.1923, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 32.21993646107257, 85.22934744949457, 75.56532769729779, 67.3935374415744, 60.61873678987381, 55.20375767202004, 51.15591635165749, 48.4660390835113, 47.07796429564709, 47.060997651983534, 48.406431792571624, 51.098583911668015, 55.20153102747946, 60.559646905619694, 67.30888066716506, 75.4610274689304, 85.13763366847041, 32.213286596268496, 0.0], [0.0, 32.21993646107257, 85.22934744949457, 75.56532769729779, 67.3935374415744, 60.61873678987381, 55.20375767202004, 51.15591635165749, 48.4660390835113, 47.07796429564709, 47.060997651983534, 48.406431792571624, 51.098583911668015, 55.20153102747946, 60.559646905619694, 67.30888066716506, 75.4610274689304, 85.13763366847041, 32.213286596268496, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.09714284, 0.1579483, 0.1486942, 0.140481, 0.1332264, 0.127122, 0.1223635, 0.1191126, 0.1174065, 0.1173803, 0.1190503, 0.1223036, 0.1270464, 0.1331311, 0.1403774, 0.1486328, 0.1578702, 0.09710975, 0.0], [0.0, 0.09714284, 0.1579483, 0.1486942, 0.140481, 0.1332264, 0.127122, 0.1223635, 0.1191126, 0.1174065, 0.1173803, 0.1190503, 0.1223036, 0.1270464, 0.1331311, 0.1403774, 0.1486328, 0.1578702, 0.09710975, 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], '_alpha3.yoda' : [1.0, 1.0005968048143108, 0.9999935544168359, 0.9995927725800949, 1.0004007370150014, 1.0003033134784185, 1.000071701141477, 0.9999242221689255, 1.0000859416767869, 1.0002893631154035, 1.000203054983782, 1.0002696947281489, 1.000063016714315, 0.9989227539895306, 0.9998459508245167, 1.0001849985434503, 1.0001474660571403, 1.0000809047433508, 1.0001208197640679, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451694321323525, 0.08451582261705012, 0.084515994046827, 0.08451599131505434, 0.08451611083925509, 0.08451613748556605, 0.08451637473292442, 0.08451645585507617, 0.08451634628542183, 0.08451624512061964, 0.08451635388191914, 0.08451613816979946, 0.08451624370544374, 0.08451605320888717, 0.08451614175136495, 0.08451600143239613, 0.08451580860664701, 0.0845168661537888, 1.0], [1.0, 0.08451694321323525, 0.08451582261705012, 0.084515994046827, 0.08451599131505434, 0.08451611083925509, 0.08451613748556605, 0.08451637473292442, 0.08451645585507617, 0.08451634628542183, 0.08451624512061964, 0.08451635388191914, 0.08451613816979946, 0.08451624370544374, 0.08451605320888717, 0.08451614175136495, 0.08451600143239613, 0.08451580860664701, 0.0845168661537888, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.000254817879661923, 0.0001566259851206192, 0.0001663069360638411, 0.00017617254452955723, 0.00018574747323002363, 0.00019462190406081074, 0.0002021607696075826, 0.00020771193582246432, 0.0002107730985954474, 0.00021080178283712473, 0.00020785868554956555, 0.00020228795330478006, 0.00019451425176874424, 0.00018579558676907616, 0.00017626435203632333, 0.00016646804793206857, 0.00015671715354280877, 0.0002547834328686169, 1.0], [1.0, 0.000254817879661923, 0.0001566259851206192, 0.0001663069360638411, 0.00017617254452955723, 0.00018574747323002363, 0.00019462190406081074, 0.0002021607696075826, 0.00020771193582246432, 0.0002107730985954474, 0.00021080178283712473, 0.00020785868554956555, 0.00020228795330478006, 0.00019451425176874424, 0.00018579558676907616, 0.00017626435203632333, 0.00016646804793206857, 0.00015671715354280877, 0.0002547834328686169, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }