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' : [43581.05454545455, 3023.6872727272726, 1412.2745454545452, 895.725090909091, 649.2349090909089, 504.5643636363637, 410.6854545454546, 344.37018181818183, 294.5692, 256.30890909090886, 225.62512727272755, 200.62276363636346, 179.56647272727292, 162.45203636363624, 146.9663636363638, 133.8902909090908, 122.75519999999989, 113.23269090909103, 104.14323636363648, 96.80334545454517, 89.62247272727284, 83.77472727272738, 78.29327272727281, 73.4941818181816, 69.0613818181819, 65.23996363636371, 61.18229090909073, 58.018945454545516, 55.317200000000064, 52.578763636363696, 50.28461818181804, 48.49410909090915, 46.988836363636416, 46.5619636363635, 48.55392727272732, 62.65360000000007, 186.35443636363584, 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' : [ [3683.271991312001, 255.5503540812933, 119.361386117403, 75.70470688555699, 54.872811615092694, 42.645244277693294, 34.711457607772665, 29.10700009525981, 24.897624434458383, 21.66403120229205, 19.071318086428107, 16.957635107223872, 15.178427492893503, 13.731912521116751, 12.423220061409811, 11.318178751368686, 10.376977696598479, 9.572243620692303, 8.804265682887824, 8.183607077162737, 7.577539669181328, 7.082280997830538, 6.618947008711607, 6.213227159499077, 5.83940221099885, 5.516361239287555, 5.172859880070484, 4.9054949792794185, 4.6769743698462145, 4.445976173151567, 4.25235219302842, 4.100630066483539, 3.974061352868583, 3.937527016829773, 4.105717038069508, 5.297746285212175, 15.752024663253106, 0.0, 0.0, 0.0], [3683.271991312001, 255.5503540812933, 119.361386117403, 75.70470688555699, 54.872811615092694, 42.645244277693294, 34.711457607772665, 29.10700009525981, 24.897624434458383, 21.66403120229205, 19.071318086428107, 16.957635107223872, 15.178427492893503, 13.731912521116751, 12.423220061409811, 11.318178751368686, 10.376977696598479, 9.572243620692303, 8.804265682887824, 8.183607077162737, 7.577539669181328, 7.082280997830538, 6.618947008711607, 6.213227159499077, 5.83940221099885, 5.516361239287555, 5.172859880070484, 4.9054949792794185, 4.6769743698462145, 4.445976173151567, 4.25235219302842, 4.100630066483539, 3.974061352868583, 3.937527016829773, 4.105717038069508, 5.297746285212175, 15.752024663253106, 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.08451543978749733, 0.08451613246722925, 0.08451712629217299, 0.08451779195860487, 0.08451919458848622, 0.0845189382190048, 0.08452078646464653, 0.08452241695719033, 0.08452215789857996, 0.08452312984020446, 0.08452656987701278, 0.08452498011621574, 0.08452818202842703, 0.08452902671148384, 0.08453104338995797, 0.0845332299640273, 0.08453391543982242, 0.0845360429381422, 0.0845399662071765, 0.08453847373493326, 0.08454954922121248, 0.0845395888281949, 0.08454043084605853, 0.08454039497806883, 0.0845537992039062, 0.08455494043550973, 0.08454831950893617, 0.0845498817816775, 0.08454828461755493, 0.08455840087644645, 0.08456566534228929, 0.08455934428646418, 0.08457458537841167, 0.08456531274283892, 0.08455993713974366, 0.08455613540502332, 0.08452723192763695, 1.0, 1.0, 1.0], [0.08451543978749733, 0.08451613246722925, 0.08451712629217299, 0.08451779195860487, 0.08451919458848622, 0.0845189382190048, 0.08452078646464653, 0.08452241695719033, 0.08452215789857996, 0.08452312984020446, 0.08452656987701278, 0.08452498011621574, 0.08452818202842703, 0.08452902671148384, 0.08453104338995797, 0.0845332299640273, 0.08453391543982242, 0.0845360429381422, 0.0845399662071765, 0.08453847373493326, 0.08454954922121248, 0.0845395888281949, 0.08454043084605853, 0.08454039497806883, 0.0845537992039062, 0.08455494043550973, 0.08454831950893617, 0.0845498817816775, 0.08454828461755493, 0.08455840087644645, 0.08456566534228929, 0.08455934428646418, 0.08457458537841167, 0.08456531274283892, 0.08455993713974366, 0.08455613540502332, 0.08452723192763695, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }