import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 380.2881666666663, 1007.2808333333334, 892.8175, 796.3524166666667, 716.6756666666668, 653.1673333333334, 604.5685, 572.8122500000001, 556.8748333333333, 557.0889166666666, 573.4553333333333, 605.3379166666667, 653.1984166666666, 717.2914166666667, 797.4360833333334, 894.0616666666667, 1008.3633333333335, 380.517583333333, 0.0], '_alpha2.yoda' : [0.0, 380.3957, 1007.333, 893.0258, 796.5376, 716.546, 652.4342, 604.645, 572.9668, 556.9626, 557.2423, 573.5298, 605.2882, 653.2759, 717.4822, 797.7256, 893.7463, 1008.312, 380.6479, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 32.14076029315766, 85.1311488234477, 75.45735090470347, 67.30461949640274, 60.57060274313494, 55.203210454143374, 51.095825008833486, 48.41201211132074, 47.06496691926078, 47.08312684320502, 48.4664044582545, 51.16095244965203, 55.205833276727, 60.622706142170856, 67.3960980159666, 75.56248793768859, 85.22266586875688, 32.16014614394652, 0.0], [0.0, 32.14076029315766, 85.1311488234477, 75.45735090470347, 67.30461949640274, 60.57060274313494, 55.203210454143374, 51.095825008833486, 48.41201211132074, 47.06496691926078, 47.08312684320502, 48.4664044582545, 51.16095244965203, 55.205833276727, 60.622706142170856, 67.3960980159666, 75.56248793768859, 85.22266586875688, 32.16014614394652, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.09700279, 0.1578531, 0.1486273, 0.1403685, 0.1331338, 0.1270383, 0.1222972, 0.1190505, 0.117376, 0.1174055, 0.119109, 0.1223623, 0.1271203, 0.1332208, 0.1404731, 0.1486872, 0.1579298, 0.09703494, 0.0], [0.0, 0.09700279, 0.1578531, 0.1486273, 0.1403685, 0.1331338, 0.1270383, 0.1222972, 0.1190505, 0.117376, 0.1174055, 0.119109, 0.1223623, 0.1271203, 0.1332208, 0.1404731, 0.1486872, 0.1579298, 0.09703494, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 1.0002827680237232, 1.0000517895952552, 1.0002333063588023, 1.0002325394253317, 0.9998190720395603, 0.9988775719545067, 1.000126536529773, 1.0002698091739484, 1.0001576057336643, 1.000275330075226, 1.0001298560887626, 0.9999178695645887, 1.000118621434707, 1.0002659774380405, 1.0003630594008945, 0.9996472651960994, 0.9999490924236963, 1.0003424721284242, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451685619061078, 0.0845158033452581, 0.08451598552302511, 0.08451612387656604, 0.08451605874224129, 0.08451618388877893, 0.08451618800654266, 0.08451637008691895, 0.08451623974015846, 0.08451635894127318, 0.08451644206800385, 0.08451635200942507, 0.08451617742499683, 0.0845161460650001, 0.08451598745600605, 0.08451596881388336, 0.0845158317955071, 0.08451684640227063, 1.0], [1.0, 0.08451685619061078, 0.0845158033452581, 0.08451598552302511, 0.08451612387656604, 0.08451605874224129, 0.08451618388877893, 0.08451618800654266, 0.08451637008691895, 0.08451623974015846, 0.08451635894127318, 0.08451644206800385, 0.08451635200942507, 0.08451617742499683, 0.0845161460650001, 0.08451598745600605, 0.08451596881388336, 0.0845158317955071, 0.08451684640227063, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00025507706655786055, 0.00015671210528013952, 0.00016646996726654662, 0.00017626429839636535, 0.000185765760150919, 0.00019449579536024965, 0.00020228840900576197, 0.0002078351152580972, 0.00021077626959259846, 0.00021074822436334596, 0.00020770405832247325, 0.00020213883292458549, 0.00019461207614174407, 0.0001857275814327905, 0.00017615593642667074, 0.00016630530705376398, 0.00015661993527465298, 0.0002550077690233765, 1.0], [1.0, 0.00025507706655786055, 0.00015671210528013952, 0.00016646996726654662, 0.00017626429839636535, 0.000185765760150919, 0.00019449579536024965, 0.00020228840900576197, 0.0002078351152580972, 0.00021077626959259846, 0.00021074822436334596, 0.00020770405832247325, 0.00020213883292458549, 0.00019461207614174407, 0.0001857275814327905, 0.00017615593642667074, 0.00016630530705376398, 0.00015661993527465298, 0.0002550077690233765, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }