import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha1.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha1.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha1.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], } 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' : [0.0, 0.0, 0.0, 0.2871722256097561, 0.4816323170731707, 0.5946777439024391, 0.7181146341463412, 0.8677253048780494, 1.054157926829268, 1.3022490853658533, 1.6462734756097575, 2.134401219512194, 2.8668475609756086, 4.078838414634145, 6.391493902439022, 12.360179878048802, 576.8213414634145, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.2869859, 0.4819918, 0.5978237, 0.7191724, 0.8648121, 1.053544, 1.303242, 1.641468, 2.126969, 2.864927, 4.075096, 6.388213, 12.36186, 576.852, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha1.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.02428892446314662, 0.04072696043611969, 0.05028172046429493, 0.06071315467430142, 0.07336106469718032, 0.08911155626596791, 0.11007993384453464, 0.13915694231866016, 0.18040837490832085, 0.24231434198811883, 0.3447500797528399, 0.540202694155952, 1.0446440692455392, 48.750305067762184, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.02428892446314662, 0.04072696043611969, 0.05028172046429493, 0.06071315467430142, 0.07336106469718032, 0.08911155626596791, 0.11007993384453464, 0.13915694231866016, 0.18040837490832085, 0.24231434198811883, 0.3447500797528399, 0.540202694155952, 1.0446440692455392, 48.750305067762184, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.000592496, 0.0007678475, 0.0008551488, 0.0009379327, 0.001028528, 0.001135224, 0.001262606, 0.001417005, 0.001613005, 0.001872026, 0.002232668, 0.002795406, 0.003888634, 0.02656363, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.000592496, 0.0007678475, 0.0008551488, 0.0009379327, 0.001028528, 0.001135224, 0.001262606, 0.001417005, 0.001613005, 0.001872026, 0.002232668, 0.002795406, 0.003888634, 0.02656363, 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], '_alpha1.yoda' : [1.0, 1.0, 1.0, 0.9993511712027149, 1.0007463845636726, 1.005290186373743, 1.0014729763235033, 0.9966427107038686, 0.9994176139896661, 1.0007624613795507, 0.9970809979745451, 0.9965178901491197, 0.9993300791427657, 0.9990824802912718, 0.9994866767473924, 1.0001359302184738, 1.000053150836111, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08457964349293763, 0.0845602734542673, 0.08455288764353688, 0.08454521296098384, 0.0845441112351685, 0.08453340244189092, 0.08453062864974778, 0.08452844826836459, 0.08452411536269278, 0.08452292521115337, 0.08452163206954658, 0.08451900328807453, 0.08451689858501059, 0.08451543235914448, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457964349293763, 0.0845602734542673, 0.08455288764353688, 0.08454521296098384, 0.0845441112351685, 0.08453340244189092, 0.08453062864974778, 0.08452844826836459, 0.08452411536269278, 0.08452292521115337, 0.08452163206954658, 0.08451900328807453, 0.08451689858501059, 0.08451543235914448, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.0020632078841954387, 0.0015942607519904997, 0.001438003706660145, 0.0013061044231677124, 0.0011853152077252718, 0.0010769012603401515, 0.0009695579856332048, 0.0008607348784959076, 0.0007557178028452606, 0.0006529911201009015, 0.0005473783889034646, 0.00043736347756402627, 0.0003146098227021811, 4.6051746165645e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0020632078841954387, 0.0015942607519904997, 0.001438003706660145, 0.0013061044231677124, 0.0011853152077252718, 0.0010769012603401515, 0.0009695579856332048, 0.0008607348784959076, 0.0007557178028452606, 0.0006529911201009015, 0.0005473783889034646, 0.00043736347756402627, 0.0003146098227021811, 4.6051746165645e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }