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' : [40243.163636363635, 2893.0876363636366, 1391.085818181818, 907.9789090909092, 677.1149090909089, 541.5556363636364, 453.2472727272728, 391.10400000000004, 344.2135272727273, 307.97676363636333, 278.78352727272755, 254.5874909090907, 234.35414545454572, 217.72414545454527, 202.57338181818204, 189.5336363636362, 178.5832363636362, 168.84890909090927, 159.609381818182, 151.94603636363593, 144.34069090909108, 138.0588727272729, 132.0338545454547, 126.95650909090872, 121.77625454545469, 117.24014545454558, 112.60898181818149, 108.89032727272739, 105.62349090909103, 102.56920000000012, 99.46741818181789, 97.46083636363647, 95.79145454545466, 96.15978181818154, 101.17272727272739, 131.39080000000016, 382.9014545454534, 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' : [ [3401.1682970890997, 244.51275212228344, 117.5704466154457, 76.74033495017119, 57.22895874474969, 45.771664698328365, 38.30839624860973, 33.056835604233044, 29.093220362730218, 26.030847561948253, 23.563964644177926, 21.518779036917234, 19.808895238718218, 18.403362969714006, 17.1226436516046, 16.020928461245003, 15.095057480201197, 14.272456279998313, 13.491751995231267, 12.843917427172759, 12.201715094185316, 11.670093160732078, 11.161361331704112, 10.731471597345232, 10.294456182779827, 9.910563360157822, 9.519065861524046, 9.204636273401574, 8.928825637939598, 8.670651171367544, 8.408692078994118, 8.239074007184783, 8.09822998720214, 8.129112665431101, 8.552881878627357, 11.106786846320004, 32.36330745491693, 0.0, 0.0, 0.0], [3401.1682970890997, 244.51275212228344, 117.5704466154457, 76.74033495017119, 57.22895874474969, 45.771664698328365, 38.30839624860973, 33.056835604233044, 29.093220362730218, 26.030847561948253, 23.563964644177926, 21.518779036917234, 19.808895238718218, 18.403362969714006, 17.1226436516046, 16.020928461245003, 15.095057480201197, 14.272456279998313, 13.491751995231267, 12.843917427172759, 12.201715094185316, 11.670093160732078, 11.161361331704112, 10.731471597345232, 10.294456182779827, 9.910563360157822, 9.519065861524046, 9.204636273401574, 8.928825637939598, 8.670651171367544, 8.408692078994118, 8.239074007184783, 8.09822998720214, 8.129112665431101, 8.552881878627357, 11.106786846320004, 32.36330745491693, 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.08451543044234752, 0.08451619268250547, 0.08451703344162695, 0.08451775055767044, 0.08451882830579673, 0.08451885942074146, 0.08451986046843926, 0.08452185506727888, 0.0845208513251691, 0.08452211541739427, 0.08452423597153873, 0.08452410195048138, 0.08452547404398385, 0.08452605443136814, 0.08452563460175079, 0.08452815430875556, 0.08452673267419243, 0.08452797448820908, 0.0845298179940344, 0.08452946674064474, 0.08453413252587395, 0.08452983086270488, 0.08453408688346398, 0.0845287230579161, 0.08453582532329632, 0.08453216534092567, 0.08453203028594587, 0.0845312573112907, 0.08453446824271828, 0.08453464754885028, 0.08453715028195215, 0.08453727994333995, 0.08454021317067896, 0.08453755314047602, 0.08453742534360753, 0.08453245467962742, 0.08452124448922706, 1.0, 1.0, 1.0], [0.08451543044234752, 0.08451619268250547, 0.08451703344162695, 0.08451775055767044, 0.08451882830579673, 0.08451885942074146, 0.08451986046843926, 0.08452185506727888, 0.0845208513251691, 0.08452211541739427, 0.08452423597153873, 0.08452410195048138, 0.08452547404398385, 0.08452605443136814, 0.08452563460175079, 0.08452815430875556, 0.08452673267419243, 0.08452797448820908, 0.0845298179940344, 0.08452946674064474, 0.08453413252587395, 0.08452983086270488, 0.08453408688346398, 0.0845287230579161, 0.08453582532329632, 0.08453216534092567, 0.08453203028594587, 0.0845312573112907, 0.08453446824271828, 0.08453464754885028, 0.08453715028195215, 0.08453727994333995, 0.08454021317067896, 0.08453755314047602, 0.08453742534360753, 0.08453245467962742, 0.08452124448922706, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }