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' : [43496.58181818182, 3021.1138181818183, 1412.6141818181818, 896.8727272727274, 650.7250909090906, 506.21890909090916, 412.3723636363637, 346.1410909090909, 296.27345454545457, 257.95272727272703, 227.31196363636388, 202.13214545454525, 180.98378181818202, 163.8518545454544, 148.2438545454547, 135.0343636363635, 123.78032727272716, 114.17269090909105, 104.95767272727285, 97.45498181818154, 90.19116363636374, 84.2848000000001, 78.64196363636373, 73.76243636363616, 69.14181818181827, 65.15352727272735, 61.026472727272555, 57.704000000000065, 54.82803636363642, 52.089272727272785, 49.565527272727124, 47.69949090909096, 46.06847272727278, 45.39072727272714, 47.03869090909096, 59.54421818181825, 166.08549090909045, 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' : [ [3676.1316355175436, 255.33286005034216, 119.39013068836603, 75.80169866606657, 54.99875881394395, 42.785059568896834, 34.85400198751149, 29.256702559039347, 25.04164333318495, 21.802997746727417, 19.21385519371267, 17.085298885782723, 15.298199537557013, 13.850221229250211, 12.531127524081532, 11.414884295124246, 10.463636205670948, 9.651585918583633, 8.873066312449385, 8.238658319719937, 7.625601073721161, 7.125438539498141, 6.648497002834123, 6.235944857394314, 5.846224465060152, 5.508955293860365, 5.159578431110114, 4.878876716676594, 4.635693356183305, 4.404517590680234, 4.191605936938539, 4.033591185437575, 3.8963852712248843, 3.8386998487672277, 3.9775302773754033, 5.035036254352563, 14.038930523652175, 0.0, 0.0, 0.0], [3676.1316355175436, 255.33286005034216, 119.39013068836603, 75.80169866606657, 54.99875881394395, 42.785059568896834, 34.85400198751149, 29.256702559039347, 25.04164333318495, 21.802997746727417, 19.21385519371267, 17.085298885782723, 15.298199537557013, 13.850221229250211, 12.531127524081532, 11.414884295124246, 10.463636205670948, 9.651585918583633, 8.873066312449385, 8.238658319719937, 7.625601073721161, 7.125438539498141, 6.648497002834123, 6.235944857394314, 5.846224465060152, 5.508955293860365, 5.159578431110114, 4.878876716676594, 4.635693356183305, 4.404517590680234, 4.191605936938539, 4.033591185437575, 3.8963852712248843, 3.8386998487672277, 3.9775302773754033, 5.035036254352563, 14.038930523652175, 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.08451541435793697, 0.08451613392176262, 0.08451715424143517, 0.08451778759799021, 0.08451919187119149, 0.08451888856884501, 0.08452070279434702, 0.08452247747356643, 0.08452206213210721, 0.08452323019510334, 0.08452637021978092, 0.08452539227425755, 0.08452801341573095, 0.08452892564244978, 0.08453050254598732, 0.08453318094543397, 0.08453391937328016, 0.08453497803838765, 0.08453947274065036, 0.08453809303551585, 0.084549314658655, 0.0845400183603465, 0.08454134021343135, 0.08454092848360073, 0.08455410370734931, 0.08455344667373614, 0.08454656152532822, 0.08455006094337633, 0.08454968778086377, 0.08455709515740899, 0.08456695948930061, 0.08456256258845773, 0.08457812991308922, 0.08457013313980755, 0.08455869414101155, 0.08455961650177489, 0.08452833806739089, 1.0, 1.0, 1.0], [0.08451541435793697, 0.08451613392176262, 0.08451715424143517, 0.08451778759799021, 0.08451919187119149, 0.08451888856884501, 0.08452070279434702, 0.08452247747356643, 0.08452206213210721, 0.08452323019510334, 0.08452637021978092, 0.08452539227425755, 0.08452801341573095, 0.08452892564244978, 0.08453050254598732, 0.08453318094543397, 0.08453391937328016, 0.08453497803838765, 0.08453947274065036, 0.08453809303551585, 0.084549314658655, 0.0845400183603465, 0.08454134021343135, 0.08454092848360073, 0.08455410370734931, 0.08455344667373614, 0.08454656152532822, 0.08455006094337633, 0.08454968778086377, 0.08455709515740899, 0.08456695948930061, 0.08456256258845773, 0.08457812991308922, 0.08457013313980755, 0.08455869414101155, 0.08455961650177489, 0.08452833806739089, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }