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.291883, 13.07142, 14.38205, 15.47805, 16.39154, 17.13242, 17.69159, 18.10275, 18.67617, 18.68029, 18.10041, 17.6958, 17.12978, 16.39924, 15.47541, 14.38025, 13.06548, 2.291722, 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.001105116, 0.002639204, 0.002768357, 0.002871903, 0.002955436, 0.003021489, 0.003070401, 0.003105874, 0.003154682, 0.00315503, 0.003105674, 0.003070766, 0.003021256, 0.002956129, 0.002871658, 0.002768184, 0.002638605, 0.001105077, 0.0], [0.0, 0.001105116, 0.002639204, 0.002768357, 0.002871903, 0.002955436, 0.003021489, 0.003070401, 0.003105874, 0.003154682, 0.00315503, 0.003105674, 0.003070766, 0.003021256, 0.002956129, 0.002871658, 0.002768184, 0.002638605, 0.001105077, 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.9998296968860048, 0.9998956478861837, 1.0002836823718142, 0.9994688729368042, 1.0000277875222354, 0.9997634856613941, 0.9997467267051912, 0.9999373122347444, 1.0000222001363683, 1.0003034973211238, 1.000384490594396, 0.9998426692050425, 0.9999294139632937, 1.000414895619976, 0.9996753804581832, 1.0006241214492537, 1.0004055491855488, 1.0002931582385013, 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.0004821047999849355, 0.0002018853799727809, 0.00019254155937990677, 0.00018544827381962372, 0.00018030753207102964, 0.0001763191875127717, 0.00017350748855373346, 0.00017155842618937864, 0.00016891857561644592, 0.00016894745976390435, 0.0001716462832854206, 0.00017350347957956644, 0.00017636202808869026, 0.00018033491094551847, 0.00018550240696018944, 0.00019261916051597719, 0.00020203429832725127, 0.00048234513716180597, 1.0], [1.0, 0.0004821047999849355, 0.0002018853799727809, 0.00019254155937990677, 0.00018544827381962372, 0.00018030753207102964, 0.0001763191875127717, 0.00017350748855373346, 0.00017155842618937864, 0.00016891857561644592, 0.00016894745976390435, 0.0001716462832854206, 0.00017350347957956644, 0.00017636202808869026, 0.00018033491094551847, 0.00018550240696018944, 0.00019261916051597719, 0.00020203429832725127, 0.00048234513716180597, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }