import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 2.1752392086330925, 12.449521582733825, 13.708280575539563, 14.752517985611515, 15.640908273381287, 16.347636690647487, 16.910016187050356, 17.35341726618705, 18.395215827338106, 18.406330935251823, 17.361455035971225, 16.911892086330933, 16.359287769784174, 15.644708633093519, 14.771667266187054, 13.706289568345317, 12.448881294964039, 2.1761870503597116, 0.0], '_alpha0.yoda' : [0.0, 2.176505, 12.44886, 13.70946, 14.75849, 15.64191, 16.35883, 16.91818, 17.35172, 18.40323, 18.40972, 17.34921, 16.91924, 16.35431, 15.64255, 14.76046, 13.70026, 12.44883, 2.17686, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.18385131024911608, 1.052185020873818, 1.1585725908275946, 1.2468267521796408, 1.3219075755201202, 1.3816357821067775, 1.4291671793968983, 1.4666426430137298, 1.5546859758534326, 1.5556287635077009, 1.4673219197819032, 1.4293247055576626, 1.382621936422856, 1.3222294505652303, 1.2484438582414463, 1.158405473052475, 1.0521324475708902, 0.18393222840135195, 0.0], [0.0, 0.18385131024911608, 1.052185020873818, 1.1585725908275946, 1.2468267521796408, 1.3219075755201202, 1.3816357821067775, 1.4291671793968983, 1.4666426430137298, 1.5546859758534326, 1.5556287635077009, 1.4673219197819032, 1.4293247055576626, 1.382621936422856, 1.3222294505652303, 1.2484438582414463, 1.158405473052475, 1.0521324475708902, 0.18393222840135195, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001054665, 0.002522316, 0.002646945, 0.002746349, 0.002827351, 0.002891418, 0.002940435, 0.002977872, 0.003066774, 0.003067315, 0.002977657, 0.002940527, 0.002891018, 0.002827408, 0.002746532, 0.002646056, 0.002522313, 0.001054751, 0.0], [0.0, 0.001054665, 0.002522316, 0.002646945, 0.002746349, 0.002827351, 0.002891418, 0.002940435, 0.002977872, 0.003066774, 0.003067315, 0.002977657, 0.002940527, 0.002891018, 0.002827408, 0.002746532, 0.002646056, 0.002522313, 0.001054751, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 1.000581909043329, 0.9999468587825301, 1.0000860373738294, 1.000404813225397, 1.0000640452971914, 1.000684705047239, 1.0004827797241196, 0.9999021941234388, 1.0004356661393439, 1.0001841249491872, 0.9992946999001031, 1.0004344820574513, 0.9996957220965715, 0.999862021521516, 0.9992412998488865, 0.9995600874828121, 0.9999958795523208, 1.0003092333630867, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.0845200424484106, 0.08451610079001652, 0.08451625894606353, 0.08451619943088365, 0.08451603656354333, 0.0845159339084905, 0.08451601486291602, 0.08451607084164728, 0.0845157779308537, 0.08451596187094296, 0.0845160683100441, 0.08451595470579645, 0.0845160226948619, 0.08451608026552158, 0.08451611018203646, 0.0845163431923847, 0.08451622460216651, 0.08452041306419363, 1.0], [1.0, 0.0845200424484106, 0.08451610079001652, 0.08451625894606353, 0.08451619943088365, 0.08451603656354333, 0.0845159339084905, 0.08451601486291602, 0.08451607084164728, 0.0845157779308537, 0.08451596187094296, 0.0845160683100441, 0.08451595470579645, 0.0845160226948619, 0.08451608026552158, 0.08451611018203646, 0.0845163431923847, 0.08451622460216651, 0.08452041306419363, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0004848501239837182, 0.00020260344811146694, 0.00019309095589443135, 0.0001861613727689456, 0.00018076642037545668, 0.0001768707033753806, 0.00017388717831339374, 0.0001716014750479349, 0.00016671584768482598, 0.000166644564350708, 0.00017150964558158217, 0.0001738733303754159, 0.00017672028517890304, 0.00018072615261233664, 0.00018593243068011173, 0.0001930541439975898, 0.00020261362770165978, 0.00048467846540381515, 1.0], [1.0, 0.0004848501239837182, 0.00020260344811146694, 0.00019309095589443135, 0.0001861613727689456, 0.00018076642037545668, 0.0001768707033753806, 0.00017388717831339374, 0.0001716014750479349, 0.00016671584768482598, 0.000166644564350708, 0.00017150964558158217, 0.0001738733303754159, 0.00017672028517890304, 0.00018072615261233664, 0.00018593243068011173, 0.0001930541439975898, 0.00020261362770165978, 0.00048467846540381515, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }