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.0139604316546755, 12.402124100719435, 14.05797482014388, 15.35180935251799, 16.418352517985603, 17.312480215827343, 18.021474820143883, 18.6163309352518, 19.572697841726598, 19.562410071942473, 18.61678057553957, 18.02807553956834, 17.315969424460437, 16.420003597122296, 15.348190647482017, 14.060532374100713, 12.393021582733823, 2.013404676258992, 0.0], '_alpha3.yoda' : [0.0, 2.012645, 12.39749, 14.05841, 15.34359, 16.42023, 17.30836, 18.02671, 18.62172, 19.55954, 19.55601, 18.62152, 18.03184, 17.31066, 16.42186, 15.34448, 14.05632, 12.3978, 2.011899, 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.1300132819991705, 0.8005676312261653, 0.9074563602188084, 0.9909711244398751, 1.0598159507134608, 1.1175355044683004, 1.1633009547531719, 1.201702142347005, 1.2634303859934413, 1.2627715645445747, 1.20172771481041, 1.163728412972932, 1.1177590902244132, 1.0599270467555153, 0.9907393323771989, 0.9076171145727067, 0.7999823295885037, 0.12997756083885767, 0.0], [0.0, 0.1300132819991705, 0.8005676312261653, 0.9074563602188084, 0.9909711244398751, 1.0598159507134608, 1.1175355044683004, 1.1633009547531719, 1.201702142347005, 1.2634303859934413, 1.2627715645445747, 1.20172771481041, 1.163728412972932, 1.1177590902244132, 1.0599270467555153, 0.9907393323771989, 0.9076171145727067, 0.7999823295885037, 0.12997756083885767, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037675, 0.002575399, 0.002742495, 0.00286511, 0.002963927, 0.003043027, 0.003105532, 0.003156368, 0.003234872, 0.00323458, 0.003156352, 0.003105974, 0.003043228, 0.002964074, 0.002865193, 0.002742291, 0.002575432, 0.001037483, 0.0], [0.0, 0.001037675, 0.002575399, 0.002742495, 0.00286511, 0.002963927, 0.003043027, 0.003105532, 0.003156368, 0.003234872, 0.00323458, 0.003156352, 0.003105974, 0.003043228, 0.002964074, 0.002865193, 0.002742291, 0.002575432, 0.001037483, 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.9993468433470688, 0.9996263462063594, 1.000030956084478, 0.9994646004044702, 1.000114352643625, 0.99976200892212, 1.0002904967494817, 1.0002894804978997, 0.9993277451155176, 0.9996728382689589, 1.0002545780910508, 1.0002088109972358, 0.9996933798893789, 1.000113057397748, 0.9997582355101495, 0.9997004114788375, 1.0003855732223395, 0.9992521740528638, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455602600511433, 0.06455084828410361, 0.06455100196356169, 0.06455077064107345, 0.06455068799092221, 0.06455086102837142, 0.0645508187516855, 0.06455096584426673, 0.06455065092252955, 0.06455091984579722, 0.06455078040664829, 0.06455089509796873, 0.0645507659909282, 0.06455096312775924, 0.06455088779730117, 0.06455069341787681, 0.06455103174378823, 0.0645561035848802, 1.0], [1.0, 0.06455602600511433, 0.06455084828410361, 0.06455100196356169, 0.06455077064107345, 0.06455068799092221, 0.06455086102837142, 0.0645508187516855, 0.06455096584426673, 0.06455065092252955, 0.06455091984579722, 0.06455078040664829, 0.06455089509796873, 0.0645507659909282, 0.06455096312775924, 0.06455088779730117, 0.06455069341787681, 0.06455103174378823, 0.0645561035848802, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0005152410065710394, 0.0002076578962671889, 0.00019508464306467802, 0.0001866301185879479, 0.00018052523825110616, 0.0001757707135005426, 0.00017232396521336455, 0.0001695483396259956, 0.00016527471205853128, 0.00016534670258442336, 0.00016954338518374677, 0.0001722853885975213, 0.00017574690306978446, 0.00018051603840814456, 0.00018667952893001468, 0.00019503464926059685, 0.00020781308116078303, 0.0005152878664847924, 1.0], [1.0, 0.0005152410065710394, 0.0002076578962671889, 0.00019508464306467802, 0.0001866301185879479, 0.00018052523825110616, 0.0001757707135005426, 0.00017232396521336455, 0.0001695483396259956, 0.00016527471205853128, 0.00016534670258442336, 0.00016954338518374677, 0.0001722853885975213, 0.00017574690306978446, 0.00018051603840814456, 0.00018667952893001468, 0.00019503464926059685, 0.00020781308116078303, 0.0005152878664847924, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }