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' : [61874.36363636364, 2449.266545454546, 1433.9643636363633, 1008.8185454545455, 771.815636363636, 619.6796363636364, 514.145090909091, 436.45345454545463, 375.13818181818186, 328.5123636363634, 290.2447272727276, 258.16254545454524, 232.67400000000026, 210.2035272727271, 190.9567272727275, 174.29494545454529, 159.20370909090894, 146.32381818181835, 135.02058181818197, 125.42261818181782, 116.12309090909105, 108.21970909090922, 101.19414545454558, 94.18407272727245, 88.50301818181828, 82.80123636363646, 77.71145454545433, 73.25280000000008, 69.19505454545462, 64.7191636363637, 61.47094545454527, 57.399781818181886, 54.48138181818188, 50.81898181818167, 46.796727272727324, 41.44378181818187, 11.472672727272695, 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' : [ [5229.338722159273, 207.0037169786456, 121.1945502416031, 85.26272474771703, 65.2324109474464, 52.3756425629729, 43.45562569977193, 36.889363290343496, 31.70770847695406, 27.7668617522803, 24.532368228711476, 21.820896800775213, 19.667046734899678, 17.768096583437025, 16.140920739352204, 14.733664157436596, 13.457581966932018, 12.36951197284199, 11.413709025510006, 10.602711020853812, 9.816414655780138, 9.148385577668124, 8.554495797363373, 7.9623162043994835, 7.482209423107575, 7.000661125804278, 6.569713630751526, 6.1938524574341365, 5.850242348586096, 5.472213808591749, 5.197658722766141, 4.853339993335429, 4.607126351983473, 4.297152622511437, 3.9574647531882463, 3.5052770607652826, 0.9716819532037284, 0.0, 0.0, 0.0], [5229.338722159273, 207.0037169786456, 121.1945502416031, 85.26272474771703, 65.2324109474464, 52.3756425629729, 43.45562569977193, 36.889363290343496, 31.70770847695406, 27.7668617522803, 24.532368228711476, 21.820896800775213, 19.667046734899678, 17.768096583437025, 16.140920739352204, 14.733664157436596, 13.457581966932018, 12.36951197284199, 11.413709025510006, 10.602711020853812, 9.816414655780138, 9.148385577668124, 8.554495797363373, 7.9623162043994835, 7.482209423107575, 7.000661125804278, 6.569713630751526, 6.1938524574341365, 5.850242348586096, 5.472213808591749, 5.197658722766141, 4.853339993335429, 4.607126351983473, 4.297152622511437, 3.9574647531882463, 3.5052770607652826, 0.9716819532037284, 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.08451543441953048, 0.0845166147240332, 0.08451712839938931, 0.0845174041772795, 0.08451812566895517, 0.08452051590773618, 0.084520160686423, 0.08452072702405804, 0.08452274392139009, 0.08452303421680643, 0.08452304529087866, 0.08452386755931342, 0.08452619001220445, 0.084528061036692, 0.08452658866686313, 0.0845329399485025, 0.08453058062389383, 0.08453519137582878, 0.0845331050408274, 0.08453587697781657, 0.08453456223848783, 0.0845353000347015, 0.08453548136543022, 0.08453994368512663, 0.08454185604988432, 0.08454778495165967, 0.08453983610496989, 0.08455448061281111, 0.08454711665474644, 0.08455322196897305, 0.08455472230550859, 0.08455328294990297, 0.08456331682919893, 0.08455802278537644, 0.08456712646002958, 0.08457908296456373, 0.08469534312556988, 1.0, 1.0, 1.0], [0.08451543441953048, 0.0845166147240332, 0.08451712839938931, 0.0845174041772795, 0.08451812566895517, 0.08452051590773618, 0.084520160686423, 0.08452072702405804, 0.08452274392139009, 0.08452303421680643, 0.08452304529087866, 0.08452386755931342, 0.08452619001220445, 0.084528061036692, 0.08452658866686313, 0.0845329399485025, 0.08453058062389383, 0.08453519137582878, 0.0845331050408274, 0.08453587697781657, 0.08453456223848783, 0.0845353000347015, 0.08453548136543022, 0.08453994368512663, 0.08454185604988432, 0.08454778495165967, 0.08453983610496989, 0.08455448061281111, 0.08454711665474644, 0.08455322196897305, 0.08455472230550859, 0.08455328294990297, 0.08456331682919893, 0.08455802278537644, 0.08456712646002958, 0.08457908296456373, 0.08469534312556988, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }