import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [0.01375, 0.04125, 0.06875, 0.09625, 0.12375, 0.15125, 0.17875000000000002, 0.20625, 0.23375, 0.26125, 0.28875, 0.31625000000000003, 0.34375, 0.37124999999999997, 0.39875, 0.42625, 0.45375, 0.48125, 0.50875, 0.53625, 0.56375, 0.59125, 0.6187499999999999, 0.64625, 0.6737500000000001, 0.7012499999999999, 0.72875, 0.7562500000000001, 0.78375, 0.81125, 0.83875, 0.86625, 0.89375, 0.92125, 0.94875, 0.9762500000000001, 1.0037500000000001, 1.03125, 1.0587499999999999, 1.0862500000000002], } xedges = { 'alpha0.yoda' : [0.0, 0.0275, 0.055, 0.0825, 0.11, 0.1375, 0.165, 0.1925, 0.22, 0.2475, 0.275, 0.3025, 0.33, 0.3575, 0.385, 0.4125, 0.44, 0.4675, 0.495, 0.5225, 0.55, 0.5775, 0.605, 0.6325, 0.66, 0.6875, 0.715, 0.7425, 0.77, 0.7975, 0.825, 0.8525, 0.88, 0.9075, 0.935, 0.9625, 0.99, 1.0175, 1.045, 1.0725, 1.1], } 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' : [49029.01818181818, 1328.0618181818184, 348.64941818181813, 138.65472727272729, 69.7236727272727, 41.026145454545464, 26.99012363636364, 19.311396363636366, 14.727185454545458, 11.80019999999999, 9.914560000000012, 8.551436363636356, 7.544778181818191, 6.915247272727267, 6.330363636363643, 6.022978181818177, 5.736996363636359, 5.528505454545461, 5.518541818181824, 5.40673454545453, 5.448432727272733, 5.490869090909097, 5.602676363636371, 5.755447272727256, 5.902683636363642, 6.221505454545461, 6.608229090909072, 7.10417818181819, 7.763967272727282, 8.357705454545464, 9.281705454545428, 10.865498181818193, 13.354469090909106, 17.719854545454496, 27.044734545454578, 64.49370909090916, 358.9200727272717, 0.0, 0.0, 0.0], } xerrs = { 'alpha0.yoda' : [ [0.01375, 0.013749999999999998, 0.013749999999999998, 0.013749999999999998, 0.013750000000000012, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151, 0.013749999999999929], [0.01375, 0.013750000000000002, 0.013750000000000005, 0.013749999999999998, 0.013749999999999998, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013750000000000151, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151], ], } yerrs = { 'alpha0.yoda' : [ [4143.70936151744, 112.24391385882402, 29.46793859364237, 11.720852365134938, 5.894516291779128, 3.469511123777604, 2.2827401252308253, 1.6339375955389799, 1.2465950981946685, 0.9993181807844183, 0.839709591672686, 0.7248892762414936, 0.6402971417647177, 0.5864585405932036, 0.5369764142134068, 0.5110738006903364, 0.4870063043697354, 0.46918096387162234, 0.4682732832103445, 0.45885131461685785, 0.46223545930046434, 0.4663935131312501, 0.47561829267867634, 0.4888548264283709, 0.5009592121434693, 0.527789965738157, 0.5601989021029526, 0.6023274966520633, 0.6585461573210454, 0.7086545977011484, 0.7865953836126027, 0.920838425001194, 1.1310375840479079, 1.499603914647609, 2.2875267961217896, 5.45312102612989, 30.336477783314187, 0.0, 0.0, 0.0], [4143.70936151744, 112.24391385882402, 29.46793859364237, 11.720852365134938, 5.894516291779128, 3.469511123777604, 2.2827401252308253, 1.6339375955389799, 1.2465950981946685, 0.9993181807844183, 0.839709591672686, 0.7248892762414936, 0.6402971417647177, 0.5864585405932036, 0.5369764142134068, 0.5110738006903364, 0.4870063043697354, 0.46918096387162234, 0.4682732832103445, 0.45885131461685785, 0.46223545930046434, 0.4663935131312501, 0.47561829267867634, 0.4888548264283709, 0.5009592121434693, 0.527789965738157, 0.5601989021029526, 0.6023274966520633, 0.6585461573210454, 0.7086545977011484, 0.7865953836126027, 0.920838425001194, 1.1310375840479079, 1.499603914647609, 2.2875267961217896, 5.45312102612989, 30.336477783314187, 0.0, 0.0, 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, 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], } ratio0_yerrs = { 'alpha0.yoda' : [ [0.08451544646786512, 0.08451708521557486, 0.08452025747616494, 0.08453265601309486, 0.08454110435111178, 0.08456829383646622, 0.08457686804203084, 0.08461001808319298, 0.08464584777873592, 0.084686546057221, 0.08469458974202435, 0.08476813080478172, 0.08486626463157525, 0.08480659005587711, 0.08482552426038241, 0.08485400166866565, 0.08488872460449837, 0.08486578655464078, 0.08485453198298404, 0.08486662527247922, 0.08483824292932783, 0.08493983473461968, 0.08489126656781942, 0.08493776474069302, 0.08486973773374817, 0.08483315969007969, 0.084772923940185, 0.08478496473999025, 0.08482083117922715, 0.08479056860226343, 0.08474685901903858, 0.08474884534443906, 0.08469356410565569, 0.08462845509261181, 0.08458307447156124, 0.08455275875734282, 0.08452154139165576, 1.0, 1.0, 1.0], [0.08451544646786512, 0.08451708521557486, 0.08452025747616494, 0.08453265601309486, 0.08454110435111178, 0.08456829383646622, 0.08457686804203084, 0.08461001808319298, 0.08464584777873592, 0.084686546057221, 0.08469458974202435, 0.08476813080478172, 0.08486626463157525, 0.08480659005587711, 0.08482552426038241, 0.08485400166866565, 0.08488872460449837, 0.08486578655464078, 0.08485453198298404, 0.08486662527247922, 0.08483824292932783, 0.08493983473461968, 0.08489126656781942, 0.08493776474069302, 0.08486973773374817, 0.08483315969007969, 0.084772923940185, 0.08478496473999025, 0.08482083117922715, 0.08479056860226343, 0.08474685901903858, 0.08474884534443906, 0.08469356410565569, 0.08462845509261181, 0.08458307447156124, 0.08455275875734282, 0.08452154139165576, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }