import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda' ] xpoints = { 'alpha1.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 = { 'alpha1.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['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' : [61846.58181818182, 2451.9927272727273, 1437.128727272727, 1012.1232727272729, 775.1290909090907, 622.8963636363637, 517.2687272727273, 439.51527272727276, 378.0192727272728, 331.3069454545452, 292.87021818181853, 260.63283636363616, 234.93992727272754, 212.30730909090892, 192.9846909090911, 176.07556363636348, 160.84050909090894, 147.88512727272746, 136.31821818181834, 126.52432727272691, 117.02290909090922, 108.93796363636376, 101.7618181818183, 94.52090909090882, 88.68240000000011, 82.77701818181828, 77.60505454545431, 72.86952727272735, 68.7332727272728, 64.13789090909098, 60.737636363636184, 56.54294545454552, 53.4606545454546, 49.692799999999856, 45.64967272727278, 40.300800000000045, 11.035199999999968, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.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 = { 'alpha1.yoda' : [ [5226.990348104113, 207.23409528341105, 121.46200303723869, 85.5419978047611, 65.51245922761245, 52.64750078439599, 43.719632672195864, 37.148155466260434, 31.95122108661295, 28.003078933432743, 24.754252660773055, 22.029686957331364, 19.858511092474135, 17.945920598166644, 16.312307375133262, 14.8840321560772, 13.595954673029551, 12.501456444076458, 11.52334317880576, 10.695737932342709, 9.892563364333615, 9.209142421106952, 8.602654212749249, 7.990692933264214, 7.497397013862291, 6.998478228919575, 6.560821355554797, 6.1615507332177835, 5.811202632249019, 5.422785109803587, 5.135682336150775, 4.781049367853389, 4.520800046214307, 4.202083701928893, 3.8607206110211694, 3.4089969441595693, 0.9345792707005305, 0.0, 0.0, 0.0], [5226.990348104113, 207.23409528341105, 121.46200303723869, 85.5419978047611, 65.51245922761245, 52.64750078439599, 43.719632672195864, 37.148155466260434, 31.95122108661295, 28.003078933432743, 24.754252660773055, 22.029686957331364, 19.858511092474135, 17.945920598166644, 16.312307375133262, 14.8840321560772, 13.595954673029551, 12.501456444076458, 11.52334317880576, 10.695737932342709, 9.892563364333615, 9.209142421106952, 8.602654212749249, 7.990692933264214, 7.497397013862291, 6.998478228919575, 6.560821355554797, 6.1615507332177835, 5.811202632249019, 5.422785109803587, 5.135682336150775, 4.781049367853389, 4.520800046214307, 4.202083701928893, 3.8607206110211694, 3.4089969441595693, 0.9345792707005305, 0.0, 0.0, 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, 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 = { 'alpha1.yoda' : [ [0.08451542824905917, 0.08451660275269694, 0.084517135265774, 0.08451737066993742, 0.08451812736221499, 0.08452048182951137, 0.08452015435517506, 0.08452073857581632, 0.0845227304314312, 0.08452306635169748, 0.08452294266877357, 0.08452383538732411, 0.08452590976339919, 0.08452803944909071, 0.08452643211381708, 0.08453207162134178, 0.08453066177094079, 0.08453491351447036, 0.08453267165974962, 0.08453503103231469, 0.08453527126597561, 0.0845356578524561, 0.0845371512267877, 0.08453889208343186, 0.08454210772218931, 0.08454615040067691, 0.08454116028888346, 0.08455593118035565, 0.08454715455362248, 0.08454885299377617, 0.08455518923066825, 0.08455607201603675, 0.08456312562298549, 0.0845612181629714, 0.08457279932950393, 0.08458881570985106, 0.08469074150903774, 1.0, 1.0, 1.0], [0.08451542824905917, 0.08451660275269694, 0.084517135265774, 0.08451737066993742, 0.08451812736221499, 0.08452048182951137, 0.08452015435517506, 0.08452073857581632, 0.0845227304314312, 0.08452306635169748, 0.08452294266877357, 0.08452383538732411, 0.08452590976339919, 0.08452803944909071, 0.08452643211381708, 0.08453207162134178, 0.08453066177094079, 0.08453491351447036, 0.08453267165974962, 0.08453503103231469, 0.08453527126597561, 0.0845356578524561, 0.0845371512267877, 0.08453889208343186, 0.08454210772218931, 0.08454615040067691, 0.08454116028888346, 0.08455593118035565, 0.08454715455362248, 0.08454885299377617, 0.08455518923066825, 0.08455607201603675, 0.08456312562298549, 0.0845612181629714, 0.08457279932950393, 0.08458881570985106, 0.08469074150903774, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }