import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda' ] xpoints = { 'alpha3.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 = { 'alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [51635.70909090909, 1350.7774545454545, 345.0193818181818, 133.47087272727273, 65.4049818181818, 37.43850909090909, 23.90304, 16.728385454545457, 12.420512727272728, 9.669778181818174, 7.889418181818191, 6.665370909090903, 5.7362509090909155, 5.118250909090905, 4.558080000000005, 4.246189090909088, 3.939698181818178, 3.691418181818186, 3.577687272727277, 3.4234767272727176, 3.3953330909090944, 3.3471425454545494, 3.310517454545458, 3.3868516363636263, 3.384538545454549, 3.566892727272731, 3.635516363636353, 3.8668327272727314, 4.153665454545459, 4.3980872727272775, 4.790938181818168, 5.662614545454551, 6.909792727272735, 9.0163127272727, 13.628752727272742, 32.71502181818186, 185.17501818181765, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.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 = { 'alpha3.yoda' : [ [4364.013620055861, 114.16392448095223, 29.161169698450337, 11.282977158255663, 5.529588031820532, 3.1663440868031163, 2.022000972770364, 1.4158222795509074, 1.0517758614885198, 0.8194024026817714, 0.6687272727272735, 0.5656572568538341, 0.4874461021275474, 0.43493417379781707, 0.3872274834860543, 0.361146091178561, 0.3352594949074815, 0.31399885244829034, 0.3049240414830887, 0.2915198588418516, 0.28922233719161233, 0.2850113989310977, 0.2818484675808725, 0.28864826031316676, 0.288459734073611, 0.30366924155149966, 0.3091495987061357, 0.3289629284044983, 0.3531584244036563, 0.37451773948650674, 0.40733895565411793, 0.4810965436349769, 0.58634038008849, 0.7643581869886169, 1.1539992981649911, 2.767049089039991, 15.652663808359241, 0.0, 0.0, 0.0], [4364.013620055861, 114.16392448095223, 29.161169698450337, 11.282977158255663, 5.529588031820532, 3.1663440868031163, 2.022000972770364, 1.4158222795509074, 1.0517758614885198, 0.8194024026817714, 0.6687272727272735, 0.5656572568538341, 0.4874461021275474, 0.43493417379781707, 0.3872274834860543, 0.361146091178561, 0.3352594949074815, 0.31399885244829034, 0.3049240414830887, 0.2915198588418516, 0.28922233719161233, 0.2850113989310977, 0.2818484675808725, 0.28864826031316676, 0.288459734073611, 0.30366924155149966, 0.3091495987061357, 0.3289629284044983, 0.3531584244036563, 0.37451773948650674, 0.40733895565411793, 0.4810965436349769, 0.58634038008849, 0.7643581869886169, 1.1539992981649911, 2.767049089039991, 15.652663808359241, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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 = { 'alpha3.yoda' : [ [0.08451541959794996, 0.0845171971865411, 0.08452038127474729, 0.08453512686105452, 0.08454383562390004, 0.08457452403124609, 0.08459179136923019, 0.08463591919244057, 0.08468055100326495, 0.08473849009509567, 0.08476255882447836, 0.084865083214249, 0.08497642621507959, 0.08497711064248495, 0.08495407792010098, 0.08505181550952585, 0.08509776115711448, 0.08506184804389517, 0.0852293725635345, 0.08515315921954239, 0.08518231626994027, 0.08515066061890487, 0.08513728486580989, 0.08522613072684838, 0.08522867451487995, 0.08513551283155271, 0.0850359530212415, 0.08507296581109551, 0.08502331934729752, 0.08515468572188344, 0.08502279515940908, 0.08496014337072597, 0.08485643538542378, 0.0847750305595072, 0.08467387451059277, 0.08458038342197169, 0.08452902536232168, 1.0, 1.0, 1.0], [0.08451541959794996, 0.0845171971865411, 0.08452038127474729, 0.08453512686105452, 0.08454383562390004, 0.08457452403124609, 0.08459179136923019, 0.08463591919244057, 0.08468055100326495, 0.08473849009509567, 0.08476255882447836, 0.084865083214249, 0.08497642621507959, 0.08497711064248495, 0.08495407792010098, 0.08505181550952585, 0.08509776115711448, 0.08506184804389517, 0.0852293725635345, 0.08515315921954239, 0.08518231626994027, 0.08515066061890487, 0.08513728486580989, 0.08522613072684838, 0.08522867451487995, 0.08513551283155271, 0.0850359530212415, 0.08507296581109551, 0.08502331934729752, 0.08515468572188344, 0.08502279515940908, 0.08496014337072597, 0.08485643538542378, 0.0847750305595072, 0.08467387451059277, 0.08458038342197169, 0.08452902536232168, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }