import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda' ] xpoints = { 'alpha2.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 = { 'alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [51639.89090909091, 1351.1850909090908, 345.1239636363636, 133.51407272727275, 65.40879999999997, 37.442363636363645, 23.902276363636368, 16.728047272727277, 12.419887272727273, 9.66098181818181, 7.882363636363646, 6.669247272727267, 5.731367272727279, 5.118447272727268, 4.553712727272733, 4.243785454545451, 3.9307745454545424, 3.683680000000004, 3.5722738181818223, 3.4180803636363537, 3.3830014545454583, 3.3290338181818218, 3.3020498181818216, 3.371051272727263, 3.3718221818181857, 3.5395076363636404, 3.6115930909090803, 3.834403636363641, 4.120818181818187, 4.363669090909096, 4.75763636363635, 5.596832727272734, 6.819585454545463, 8.900810909090882, 13.362007272727288, 31.925341818181852, 175.9877818181813, 0.0, 0.0, 0.0], } xerrs = { 'alpha2.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 = { 'alpha2.yoda' : [ [4364.368120462467, 114.19838328015705, 29.1700287711959, 11.286620763738934, 5.52993117886427, 3.16668004056912, 2.0219447311605157, 1.4157667081482128, 1.0517023743899796, 0.8186561857173144, 0.668121432027057, 0.565968080167596, 0.48705449658598643, 0.4349796233472005, 0.3868115051234491, 0.3609682113244553, 0.33445979140416193, 0.31329620552552884, 0.30449203330646873, 0.29111851552699997, 0.28813786874508335, 0.2834998272770477, 0.28116508488551323, 0.2872755811135568, 0.28736714213731096, 0.30139764788193113, 0.3071024810780547, 0.32625486158943906, 0.3503659291334147, 0.3714594846821533, 0.4045117452758507, 0.47567973113384887, 0.5787018816010502, 0.7545224969125203, 1.1313758756049332, 2.7003323945992888, 14.875994306652883, 0.0, 0.0, 0.0], [4364.368120462467, 114.19838328015705, 29.1700287711959, 11.286620763738934, 5.52993117886427, 3.16668004056912, 2.0219447311605157, 1.4157667081482128, 1.0517023743899796, 0.8186561857173144, 0.668121432027057, 0.565968080167596, 0.48705449658598643, 0.4349796233472005, 0.3868115051234491, 0.3609682113244553, 0.33445979140416193, 0.31329620552552884, 0.30449203330646873, 0.29111851552699997, 0.28813786874508335, 0.2834998272770477, 0.28116508488551323, 0.2872755811135568, 0.28736714213731096, 0.30139764788193113, 0.3071024810780547, 0.32625486158943906, 0.3503659291334147, 0.3714594846821533, 0.4045117452758507, 0.47567973113384887, 0.5787018816010502, 0.7545224969125203, 1.1313758756049332, 2.7003323945992888, 14.875994306652883, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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 = { 'alpha2.yoda' : [ [0.08451544036267794, 0.08451720200918086, 0.08452043858052873, 0.08453506460546635, 0.08454414664180161, 0.08457478997115643, 0.0845921409492442, 0.08463430818111214, 0.08467889855163212, 0.08473840455600659, 0.08476155920348785, 0.0848623625760623, 0.08498050699065057, 0.08498273014648636, 0.08494420449642959, 0.08505807260775353, 0.08508750312096214, 0.0850497886693547, 0.08523759622140215, 0.08517017874245972, 0.08517225683067219, 0.08515979192782229, 0.0851486501921793, 0.08521839564936187, 0.08522606669084612, 0.08515242198815424, 0.08503241460148918, 0.08508620701675608, 0.08502338945195254, 0.08512549346512571, 0.08502367864169318, 0.08499087864747418, 0.08485880636854952, 0.08477008495280867, 0.08467110161765469, 0.0845827245947111, 0.08452856302275437, 1.0, 1.0, 1.0], [0.08451544036267794, 0.08451720200918086, 0.08452043858052873, 0.08453506460546635, 0.08454414664180161, 0.08457478997115643, 0.0845921409492442, 0.08463430818111214, 0.08467889855163212, 0.08473840455600659, 0.08476155920348785, 0.0848623625760623, 0.08498050699065057, 0.08498273014648636, 0.08494420449642959, 0.08505807260775353, 0.08508750312096214, 0.0850497886693547, 0.08523759622140215, 0.08517017874245972, 0.08517225683067219, 0.08515979192782229, 0.0851486501921793, 0.08521839564936187, 0.08522606669084612, 0.08515242198815424, 0.08503241460148918, 0.08508620701675608, 0.08502338945195254, 0.08512549346512571, 0.08502367864169318, 0.08499087864747418, 0.08485880636854952, 0.08477008495280867, 0.08467110161765469, 0.0845827245947111, 0.08452856302275437, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }