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.0644166666663, 1007.3750000000001, 892.8091666666668, 796.3255, 716.6432500000001, 653.1279166666667, 604.5425, 572.7831666666667, 556.8463333333334, 557.0654166666667, 573.4284166666666, 605.3056666666666, 653.1715833333334, 717.2675, 797.411, 894.0541666666667, 1008.4633333333334, 381.295583333333, 0.0], '_alpha3.yoda' : [0.0, 381.197, 1007.417, 893.0089, 796.505, 716.5098, 652.3975, 604.6124, 572.9399, 556.9296, 557.2122, 573.496, 605.2552, 653.2423, 717.4518, 797.6958, 893.7335, 1008.412, 381.4671, 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.20635504920657, 85.13906108374829, 75.45664225971834, 67.30233919494263, 60.56786826912985, 55.19988300108374, 51.093630011751735, 48.40955197295491, 47.06256916772252, 47.081135641924924, 48.46413335882756, 51.15822405917634, 55.20356268696191, 60.620678540137334, 67.39398052579408, 75.56185380203426, 85.23113997960031, 32.22588460987358, 0.0], [0.0, 32.20635504920657, 85.13906108374829, 75.45664225971834, 67.30233919494263, 60.56786826912985, 55.19988300108374, 51.093630011751735, 48.40955197295491, 47.06256916772252, 47.081135641924924, 48.46413335882756, 51.15822405917634, 55.20356268696191, 60.620678540137334, 67.39398052579408, 75.56185380203426, 85.23113997960031, 32.22588460987358, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.09711034, 0.1578685, 0.1486342, 0.1403735, 0.1331379, 0.1270419, 0.1223008, 0.1190544, 0.1173791, 0.1174089, 0.1191121, 0.1223658, 0.1271241, 0.1332254, 0.1404784, 0.1486945, 0.1579464, 0.09714474, 0.0], [0.0, 0.09711034, 0.1578685, 0.1486342, 0.1403735, 0.1331379, 0.1270419, 0.1223008, 0.1190544, 0.1173791, 0.1174089, 0.1191121, 0.1223658, 0.1271241, 0.1332254, 0.1404784, 0.1486945, 0.1579464, 0.09714474, 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.0003479289262782, 1.000041692517682, 1.0002237133541976, 1.000225410337858, 0.9998137846131948, 0.9988816636863503, 1.000115624625233, 1.0002736346709442, 1.0001495325760128, 1.0002634938894819, 1.0001178583609898, 0.9999166261453579, 1.0001082666001875, 1.0002569473731906, 1.0003571558456055, 0.9996413341846365, 0.9999490974717309, 1.000449825998947, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451682613383153, 0.0845157573731215, 0.08451598065624512, 0.08451611708395955, 0.08451606607489828, 0.08451618984961533, 0.0845161920158661, 0.08451636638464102, 0.08451625942475306, 0.08451634984567179, 0.08451644869737893, 0.08451634748588677, 0.08451617323160528, 0.08451613734086283, 0.0845159905316005, 0.08451596851648727, 0.08451585413411195, 0.0845168053827189, 1.0], [1.0, 0.08451682613383153, 0.0845157573731215, 0.08451598065624512, 0.08451611708395955, 0.08451606607489828, 0.08451618984961533, 0.0845161920158661, 0.08451636638464102, 0.08451625942475306, 0.08451634984567179, 0.08451644869737893, 0.08451634748588677, 0.08451617323160528, 0.08451613734086283, 0.0845159905316005, 0.08451596851648727, 0.08451585413411195, 0.0845168053827189, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0002548396957382317, 0.0001567127435165653, 0.00016647924948500563, 0.00017627653516055934, 0.00018577988420319312, 0.0001945130452367996, 0.00020230306388715433, 0.00020785247704265051, 0.00021079262441643084, 0.0002107632182635642, 0.00020771921400825823, 0.00020215538485514483, 0.00019462588888396985, 0.00018574018758691838, 0.00017616812409159142, 0.00016631486720137203, 0.00015662086540908774, 0.0002547754137374178, 1.0], [1.0, 0.0002548396957382317, 0.0001567127435165653, 0.00016647924948500563, 0.00017627653516055934, 0.00018577988420319312, 0.0001945130452367996, 0.00020230306388715433, 0.00020785247704265051, 0.00021079262441643084, 0.0002107632182635642, 0.00020771921400825823, 0.00020215538485514483, 0.00019462588888396985, 0.00018574018758691838, 0.00017616812409159142, 0.00016631486720137203, 0.00015662086540908774, 0.0002547754137374178, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }