import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 378.15266666666633, 1005.4591666666668, 891.3608333333334, 795.0824166666667, 715.5306666666667, 652.1370833333334, 603.6441666666666, 571.9466666666667, 556.0170833333333, 556.1954166666667, 572.5515833333334, 604.3733333333333, 652.1628333333334, 716.1743333333334, 796.1383333333334, 892.5825, 1006.5058333333334, 378.37141666666633, 0.0], '_alpha1.yoda' : [0.0, 378.2334, 1005.533, 891.5609, 795.2854, 715.4164, 651.4145, 603.7016, 572.077, 556.086, 556.3607, 572.6255, 604.3197, 652.251, 716.3341, 796.4394, 892.2682, 1006.458, 378.5148, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 31.960272648677073, 84.97716196458643, 75.33418141115553, 67.19727383689842, 60.47382927992718, 55.11613370370281, 51.01770526003693, 48.338843076763844, 46.992478712614805, 47.00760872218218, 48.390024224466394, 51.079424809691126, 55.11830710188565, 60.52828195700475, 67.28641620383387, 75.43747871213914, 85.06570173172682, 31.978747282809188, 0.0], [0.0, 31.960272648677073, 84.97716196458643, 75.33418141115553, 67.19727383689842, 60.47382927992718, 55.11613370370281, 51.01770526003693, 48.338843076763844, 46.992478712614805, 47.00760872218218, 48.390024224466394, 51.079424809691126, 55.11830710188565, 60.52828195700475, 67.28641620383387, 75.43747871213914, 85.06570173172682, 31.978747282809188, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.09663588, 0.1575638, 0.1483658, 0.1401264, 0.1329039, 0.1268198, 0.122087, 0.1188463, 0.1171735, 0.1172024, 0.1189033, 0.1221495, 0.1269012, 0.1329892, 0.140228, 0.1484247, 0.1576363, 0.09667181, 0.0], [0.0, 0.09663588, 0.1575638, 0.1483658, 0.1401264, 0.1329039, 0.1268198, 0.122087, 0.1188463, 0.1171735, 0.1172024, 0.1189033, 0.1221495, 0.1269012, 0.1329892, 0.140228, 0.1484247, 0.1576363, 0.09667181, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 1.0002134940209342, 1.0000734324533318, 1.0002244508163078, 1.0002552984811113, 0.9998403050043976, 0.9988919763163291, 1.0000951443524262, 1.0002278767251025, 1.0001239470310042, 1.0002971677370587, 1.000129100449319, 0.9999112579421109, 1.0001351911856367, 1.0002230834857249, 1.0003781587370701, 0.9996478756865612, 0.9999524758508602, 1.0003789486388712, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451685117124769, 0.08451577625604198, 0.08451592059462136, 0.08451611107011872, 0.08451605514218889, 0.08451617782872001, 0.08451619029428806, 0.08451634722951529, 0.08451624980817851, 0.08451635398922083, 0.08451644468913161, 0.08451634443890828, 0.08451617339210372, 0.08451612846174522, 0.08451598596202987, 0.08451597327097399, 0.08451585566077377, 0.08451681568478912, 1.0], [1.0, 0.08451685117124769, 0.08451577625604198, 0.08451592059462136, 0.08451611107011872, 0.08451605514218889, 0.08451617782872001, 0.08451619029428806, 0.08451634722951529, 0.08451624980817851, 0.08451635398922083, 0.08451644468913161, 0.08451634443890828, 0.08451617339210372, 0.08451612846174522, 0.08451598596202987, 0.08451597327097399, 0.08451585566077377, 0.08451681568478912, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00025554726574276017, 0.00015670830325448322, 0.00016644864173038788, 0.0001762413519185485, 0.000185741724556879, 0.0001944680087072695, 0.00020224994581520848, 0.0002077926263521074, 0.0002107372300461392, 0.00021072162137258411, 0.00020767264201376905, 0.00020210934742322624, 0.00019458514578542114, 0.00018569389296740132, 0.0001761352193818913, 0.00016628681382393224, 0.00015661737347109266, 0.00025549448436578104, 1.0], [1.0, 0.00025554726574276017, 0.00015670830325448322, 0.00016644864173038788, 0.0001762413519185485, 0.000185741724556879, 0.0001944680087072695, 0.00020224994581520848, 0.0002077926263521074, 0.0002107372300461392, 0.00021072162137258411, 0.00020767264201376905, 0.00020210934742322624, 0.00019458514578542114, 0.00018569389296740132, 0.0001761352193818913, 0.00016628681382393224, 0.00015661737347109266, 0.00025549448436578104, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }