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.292273381294963, 13.072784172661882, 14.377971223021577, 15.486275179856118, 16.391084532374094, 17.136473021582738, 17.69607194244604, 18.10388489208633, 18.67575539568343, 18.674622302158298, 18.093453237410074, 17.6985845323741, 17.130989208633096, 16.392438848920857, 15.480435251798564, 14.371280575539561, 13.060183453237421, 2.291050359712229, 0.0], '_alpha1.yoda' : [0.0, 2.291556, 13.06582, 14.38009, 15.47516, 16.39951, 17.12978, 17.69547, 18.10079, 18.67997, 18.67689, 18.10192, 17.69126, 17.13307, 16.39145, 15.47816, 14.38211, 13.07125, 2.292004, 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.19374227279478262, 1.1048624245466476, 1.2151714579736024, 1.3088379246121575, 1.3853088460088194, 1.4483051450143005, 1.4955988215767297, 1.5300673775374594, 1.578397325313594, 1.5783048931031682, 1.5291855146049935, 1.495812500272418, 1.4478458599520967, 1.3854238444672382, 1.3083455047245487, 1.2146060444766986, 1.1037983868607986, 0.1936390607938409, 0.0], [0.0, 0.19374227279478262, 1.1048624245466476, 1.2151714579736024, 1.3088379246121575, 1.3853088460088194, 1.4483051450143005, 1.4955988215767297, 1.5300673775374594, 1.578397325313594, 1.5783048931031682, 1.5291855146049935, 1.495812500272418, 1.4478458599520967, 1.3854238444672382, 1.3083455047245487, 1.2146060444766986, 1.1037983868607986, 0.1936390607938409, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001105037, 0.002638639, 0.002768168, 0.002871635, 0.002956154, 0.003021256, 0.003070737, 0.003105707, 0.003155003, 0.003154742, 0.003105803, 0.003070372, 0.003021546, 0.002955428, 0.002871913, 0.002768363, 0.002639188, 0.001105145, 0.0], [0.0, 0.001105037, 0.002638639, 0.002768168, 0.002871635, 0.002956154, 0.003021256, 0.003070737, 0.003105707, 0.003155003, 0.003154742, 0.003105803, 0.003070372, 0.003021546, 0.002955428, 0.002871913, 0.002768363, 0.002639188, 0.001105145, 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, 0.9996870437440766, 0.9994672770107805, 1.0001473627221502, 0.9992822560798496, 1.0005140274647029, 0.9996094282893389, 0.9999659844033186, 0.9998290481791737, 1.0002256724950223, 1.000121432059241, 1.0004679461946169, 0.9995861515162017, 1.0001214635851767, 0.999939676522208, 0.9998530240421826, 1.000753546241305, 1.0008473500240025, 1.0004162458864023, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451970623387545, 0.08451622928627264, 0.08451619766966192, 0.08451599299453479, 0.08451599668543534, 0.08451594112687104, 0.08451586467555922, 0.08451596917776973, 0.0845158491248184, 0.08451602755686027, 0.08451595693425981, 0.08451593953947507, 0.08451618539473835, 0.08451602944722549, 0.08451606711591272, 0.08451620146808643, 0.08451630031178342, 0.08451977494644126, 1.0], [1.0, 0.08451970623387545, 0.08451622928627264, 0.08451619766966192, 0.08451599299453479, 0.08451599668543534, 0.08451594112687104, 0.08451586467555922, 0.08451596917776973, 0.0845158491248184, 0.08451602755686027, 0.08451595693425981, 0.08451593953947507, 0.08451618539473835, 0.08451602944722549, 0.08451606711591272, 0.08451620146808643, 0.08451630031178342, 0.08451977494644126, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0004820703363818397, 0.00020184216041124465, 0.00019252841427083207, 0.00018543096817337325, 0.00018035133637199472, 0.0001763055907825865, 0.0001735264758183136, 0.00017154920164994995, 0.00016893576367621642, 0.00016893203776525078, 0.0001716534129360355, 0.000173481217912297, 0.0001763789564748137, 0.00018029214732709288, 0.00018551887936525118, 0.0001926316159126316, 0.00020207893782271379, 0.00048237481787122895, 1.0], [1.0, 0.0004820703363818397, 0.00020184216041124465, 0.00019252841427083207, 0.00018543096817337325, 0.00018035133637199472, 0.0001763055907825865, 0.0001735264758183136, 0.00017154920164994995, 0.00016893576367621642, 0.00016893203776525078, 0.0001716534129360355, 0.000173481217912297, 0.0001763789564748137, 0.00018029214732709288, 0.00018551887936525118, 0.0001926316159126316, 0.00020207893782271379, 0.00048237481787122895, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }