import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['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, 2.2892194244604305, 13.069093525179866, 14.379854316546755, 15.492703237410076, 16.39498021582733, 17.135850719424464, 17.689057553956832, 18.109334532374103, 18.680359712230192, 18.668597122302184, 18.09634892086331, 17.688980215827335, 17.122314748201443, 16.396201438848916, 15.4716618705036, 14.383140287769777, 13.06919424460433, 2.288723021582733, 0.0], '_alpha1.yoda' : [0.0, 2.289734, 13.06945, 14.37527, 15.47816, 16.39496, 17.12847, 17.69631, 18.09625, 18.68524, 18.67973, 18.09497, 17.69799, 17.13393, 16.39544, 15.47772, 14.38369, 13.07002, 2.288918, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.19348539346576585, 1.10455027639263, 1.2153321008329128, 1.3093827818859958, 1.3856387550830163, 1.4482542198046333, 1.4950079102553606, 1.5305295709520335, 1.57878943593453, 1.5777926262505981, 1.5294325720825257, 1.4950028254360237, 1.4471091582512439, 1.3857417042534663, 1.307605785045484, 1.215609415998566, 1.1045575979504674, 0.19344183637689752, 0.0], [0.0, 0.19348539346576585, 1.10455027639263, 1.2153321008329128, 1.3093827818859958, 1.3856387550830163, 1.4482542198046333, 1.4950079102553606, 1.5305295709520335, 1.57878943593453, 1.5777926262505981, 1.5294325720825257, 1.4950028254360237, 1.4471091582512439, 1.3857417042534663, 1.307605785045484, 1.215609415998566, 1.1045575979504674, 0.19344183637689752, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001104598, 0.002639006, 0.002767704, 0.002871913, 0.002955744, 0.00302114, 0.00307081, 0.003105317, 0.003155448, 0.003154983, 0.003105207, 0.003070956, 0.003021622, 0.002955787, 0.002871873, 0.002768515, 0.002639063, 0.001104401, 0.0], [0.0, 0.001104598, 0.002639006, 0.002767704, 0.002871913, 0.002955744, 0.00302114, 0.00307081, 0.003105317, 0.003155448, 0.003154983, 0.003105207, 0.003070956, 0.003021622, 0.002955787, 0.002871873, 0.002768515, 0.002639063, 0.001104401, 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.0002247820956225, 1.0000272761702598, 0.999681198679358, 0.9990612847101493, 0.9999987669501845, 0.9995692819956643, 1.0004099961810315, 0.9992774702819306, 1.0002612523444403, 1.0005963424902728, 0.9999238011562808, 1.0005093444654658, 1.000678369249098, 0.9999535600454925, 1.0003915629456683, 1.000038219207991, 1.0000631833439932, 1.0000851909188784, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08452024799299018, 0.08451621179881551, 0.0845163013532371, 0.08451609521082429, 0.08451603703341788, 0.084516038539187, 0.08451597297906609, 0.08451605818070797, 0.08451600827048758, 0.0845158645780464, 0.08451608546955239, 0.08451605503512066, 0.08451597693023664, 0.0845160209467853, 0.08451618164810124, 0.08451627333651322, 0.08451612067870891, 0.0845195484786646, 1.0], [1.0, 0.08452024799299018, 0.08451621179881551, 0.0845163013532371, 0.08451609521082429, 0.08451603703341788, 0.084516038539187, 0.08451597297906609, 0.08451605818070797, 0.08451600827048758, 0.0845158645780464, 0.08451608546955239, 0.08451605503512066, 0.08451597693023664, 0.0845160209467853, 0.08451618164810124, 0.08451627333651322, 0.08451612067870891, 0.0845195484786646, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00048252167887329284, 0.0002019272411598784, 0.0001924709346196387, 0.00018537197518023968, 0.0001802834746422319, 0.0001763052240280878, 0.00017359941255395465, 0.0001714760415104496, 0.00016891794636770838, 0.00016899946896550372, 0.00017159301103108162, 0.00017360842527554195, 0.0001764727517532287, 0.00018027266931452807, 0.00018562149457746139, 0.00019248334818468775, 0.00020193004638289374, 0.0004825402591687428, 1.0], [1.0, 0.00048252167887329284, 0.0002019272411598784, 0.0001924709346196387, 0.00018537197518023968, 0.0001802834746422319, 0.0001763052240280878, 0.00017359941255395465, 0.0001714760415104496, 0.00016891794636770838, 0.00016899946896550372, 0.00017159301103108162, 0.00017360842527554195, 0.0001764727517532287, 0.00018027266931452807, 0.00018562149457746139, 0.00019248334818468775, 0.00020193004638289374, 0.0004825402591687428, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }