import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha3.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha3.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha3.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], } 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, 2.0130287769784165, 12.400994604316557, 14.058303956834527, 15.349073741007198, 16.418580935251793, 17.295253597122304, 18.003111510791367, 18.59043165467626, 19.509730215827314, 19.505215827338155, 18.592176258992808, 18.00913669064748, 17.305550359712235, 16.42019604316546, 15.34998021582734, 14.052802158273375, 12.39388309352519, 2.0162535971223012, 0.0], '_alpha3.yoda' : [0.0, 2.012578, 12.39728, 14.06052, 15.33911, 16.41323, 17.29984, 18.01192, 18.59476, 19.50885, 19.50692, 18.59239, 18.01202, 17.30082, 16.41555, 15.34782, 14.05804, 12.40452, 2.013672, 0.0], } xerrs = { 'alpha3.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha3.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 0.17014153686000547, 1.0480862604169965, 1.188152829006145, 1.297245442388699, 1.3876339297470897, 1.4617273950303196, 1.521549674794362, 1.5711892981992461, 1.6488836478969788, 1.6485017343072725, 1.5713367039934214, 1.52206046805735, 1.4625987306299109, 1.3877727444762196, 1.2973203731589678, 1.187687451665, 1.0474836202454298, 0.17041576183677296, 0.0], [0.0, 0.17014153686000547, 1.0480862604169965, 1.188152829006145, 1.297245442388699, 1.3876339297470897, 1.4617273950303196, 1.521549674794362, 1.5711892981992461, 1.6488836478969788, 1.6485017343072725, 1.5713367039934214, 1.52206046805735, 1.4625987306299109, 1.3877727444762196, 1.2973203731589678, 1.187687451665, 1.0474836202454298, 0.17041576183677296, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037248, 0.002574361, 0.002741617, 0.00286356, 0.002962124, 0.003041076, 0.003103032, 0.003152837, 0.003229402, 0.003229242, 0.003152636, 0.003103041, 0.003041162, 0.002962333, 0.002864373, 0.002741376, 0.002575113, 0.00103753, 0.0], [0.0, 0.001037248, 0.002574361, 0.002741617, 0.00286356, 0.002962124, 0.003041076, 0.003103032, 0.003152837, 0.003229402, 0.003229242, 0.003152636, 0.003103041, 0.003041162, 0.002962333, 0.002864373, 0.002741376, 0.002575113, 0.00103753, 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, 0.9997760702760081, 0.9997004591619398, 1.0001576323269348, 0.9993508571803537, 0.9996740927079572, 1.000265182748084, 1.0004892759345156, 1.000232826510118, 0.9999548832394104, 1.0000873701002302, 1.0000114962876974, 1.0001601025858178, 0.9997266564995676, 0.999717053124503, 0.9998592691458252, 1.0003727257857638, 1.000858238406361, 0.9987196069353649, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08452017119963393, 0.08451630646240077, 0.08451608619747601, 0.08451620366660474, 0.08451606964203262, 0.08451610072219648, 0.08451592792069969, 0.08451602025088145, 0.08451596355542211, 0.08451594429407762, 0.08451601803384287, 0.08451601507626891, 0.08451616390281803, 0.08451621045376306, 0.08451609415244085, 0.08451605866846755, 0.08451617724171176, 0.08452099581124067, 1.0], [1.0, 0.08452017119963393, 0.08451630646240077, 0.08451608619747601, 0.08451620366660474, 0.08451606964203262, 0.08451610072219648, 0.08451592792069969, 0.08451602025088145, 0.08451596355542211, 0.08451594429407762, 0.08451601803384287, 0.08451601507626891, 0.08451616390281803, 0.08451621045376306, 0.08451609415244085, 0.08451605866846755, 0.08451617724171176, 0.08452099581124067, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0005152673483172571, 0.00020759310701610277, 0.0001950176215010024, 0.000186562397726294, 0.00018041291215613656, 0.00017583298116576873, 0.00017236087207147445, 0.00016959460966614682, 0.00016552776303283478, 0.00016555787070420176, 0.0001695678846888679, 0.0001723037063520915, 0.00017573333045101548, 0.00018040789477863784, 0.00018660434474349026, 0.00019507682305098533, 0.00020777289736945235, 0.0005145830869097098, 1.0], [1.0, 0.0005152673483172571, 0.00020759310701610277, 0.0001950176215010024, 0.000186562397726294, 0.00018041291215613656, 0.00017583298116576873, 0.00017236087207147445, 0.00016959460966614682, 0.00016552776303283478, 0.00016555787070420176, 0.0001695678846888679, 0.0001723037063520915, 0.00017573333045101548, 0.00018040789477863784, 0.00018660434474349026, 0.00019507682305098533, 0.00020777289736945235, 0.0005145830869097098, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }