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, 3.955375899280574, 21.21825539568347, 19.620287769784166, 17.806147482014392, 16.17160971223021, 14.824508992805761, 13.824431654676257, 13.181843525179858, 12.986633093525164, 12.975073741007211, 13.171158273381296, 13.80355215827338, 14.810886690647484, 16.15454856115107, 17.79112589928058, 19.63374100719424, 21.322661870503616, 4.031829136690646, 0.0], '_alpha3.yoda' : [0.0, 3.959504, 21.2152, 19.63341, 17.80555, 16.16704, 14.82415, 13.82139, 13.17639, 12.98757, 12.9788, 13.16333, 13.80094, 14.80578, 16.15559, 17.78692, 19.64297, 21.32941, 4.035916, 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.3343007049609749, 1.7932822710780225, 1.6582275388098477, 1.5049070702534617, 1.3667597422190463, 1.2529109266316494, 1.168389400947637, 1.1140803748013515, 1.0975802499840317, 1.0966051676617994, 1.1131777214404772, 1.166626400137175, 1.2517586355577879, 1.3653185589273973, 1.5036335879024494, 1.6593644485673087, 1.8021026284147574, 0.3407648335845079, 0.0], [0.0, 0.3343007049609749, 1.7932822710780225, 1.6582275388098477, 1.5049070702534617, 1.3667597422190463, 1.2529109266316494, 1.168389400947637, 1.1140803748013515, 1.0975802499840317, 1.0966051676617994, 1.1131777214404772, 1.166626400137175, 1.2517586355577879, 1.3653185589273973, 1.5036335879024494, 1.6593644485673087, 1.8021026284147574, 0.3407648335845079, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001454878, 0.003367672, 0.003239694, 0.003085205, 0.002939825, 0.002815083, 0.002718204, 0.002654022, 0.002634936, 0.002634046, 0.002652706, 0.002716193, 0.002813338, 0.002938784, 0.00308359, 0.003240483, 0.003376725, 0.00146885, 0.0], [0.0, 0.001454878, 0.003367672, 0.003239694, 0.003085205, 0.002939825, 0.002815083, 0.002718204, 0.002654022, 0.002634936, 0.002634046, 0.002652706, 0.002716193, 0.002813338, 0.002938784, 0.00308359, 0.003240483, 0.003376725, 0.00146885, 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.0010436683704769, 0.9998560015596715, 1.0006688092636462, 0.9999664451833281, 0.9997174237870238, 0.9999757838316308, 0.9997799797668189, 0.9995862850921087, 1.0000721439089015, 1.0002871859587983, 0.9994056503445777, 0.9998107618790129, 0.9996552069599784, 1.0000644672207946, 0.9997635956653675, 1.0004700577848296, 1.0003164768797332, 1.0010136499268194, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451806186657997, 0.08451600933424708, 0.08451596420331653, 0.08451615217573234, 0.08451599850232583, 0.08451618378994401, 0.084516270189843, 0.08451627973532257, 0.08451615149820933, 0.08451629559499317, 0.08451631195490163, 0.08451639018424244, 0.08451611721182271, 0.08451604535769915, 0.08451593206719153, 0.08451595892801482, 0.08451583762661777, 0.08451866932640159, 1.0], [1.0, 0.08451806186657997, 0.08451600933424708, 0.08451596420331653, 0.08451615217573234, 0.08451599850232583, 0.08451618378994401, 0.084516270189843, 0.08451627973532257, 0.08451615149820933, 0.08451629559499317, 0.08451631195490163, 0.08451639018424244, 0.08451611721182271, 0.08451604535769915, 0.08451593206719153, 0.08451595892801482, 0.08451583762661777, 0.08451866932640159, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0003678229420027111, 0.00015871578210360787, 0.00016511959651219928, 0.0001732662836313301, 0.0001817892623129953, 0.00018989384413110354, 0.0001966232007144062, 0.0002013392129052592, 0.00020289600707312802, 0.00020300817186689283, 0.00020140263634680307, 0.00019677492929760158, 0.00018995068011535844, 0.00018191681363769418, 0.00017332180197345977, 0.00016504664082166588, 0.00015836320157902714, 0.0003643135535266365, 1.0], [1.0, 0.0003678229420027111, 0.00015871578210360787, 0.00016511959651219928, 0.0001732662836313301, 0.0001817892623129953, 0.00018989384413110354, 0.0001966232007144062, 0.0002013392129052592, 0.00020289600707312802, 0.00020300817186689283, 0.00020140263634680307, 0.00019677492929760158, 0.00018995068011535844, 0.00018191681363769418, 0.00017332180197345977, 0.00016504664082166588, 0.00015836320157902714, 0.0003643135535266365, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }