import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda' ] xpoints = { 'alpha0.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 = { 'alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [60188.43636363636, 2477.1545454545458, 1492.5032727272726, 1080.106181818182, 850.1919999999997, 701.6814545454547, 599.2032727272729, 523.08, 462.39090909090913, 416.2509090909087, 378.34909090909133, 346.1409090909088, 320.341563636364, 297.0561090909088, 277.6111272727276, 260.1567636363634, 243.92465454545433, 230.53912727272754, 218.11138181818208, 207.37207272727213, 197.11229090909114, 187.77094545454565, 179.61592727272748, 171.11207272727222, 164.34400000000016, 157.15018181818198, 150.43229090909045, 144.37061818181834, 138.87934545454561, 132.9961454545456, 127.891636363636, 121.77178181818195, 117.10607272727286, 110.51349090909059, 103.84585454545467, 93.40716363636373, 26.435930909090832, 0.0, 0.0, 0.0], } xerrs = { 'alpha0.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 = { 'alpha0.yoda' : [ [5086.851629852421, 209.36067972490926, 126.14219970118859, 91.28764818278431, 71.85677214069203, 59.306259338236934, 50.64452031579062, 44.21097429297261, 39.08214700954943, 35.18250316457909, 31.97883597652087, 29.25700085746234, 27.076215661451954, 25.10886840794048, 23.46531676558175, 21.99038407430703, 20.618287638016067, 19.4874963090874, 18.436718662531113, 17.528724949268433, 16.661463430214173, 15.872167021248666, 15.183052753286852, 14.464378587892503, 13.892084671816756, 13.284458078758103, 12.716795687671581, 12.205366655967854, 11.740359153699327, 11.242748994737806, 10.812006182293354, 10.294581419930124, 9.900544771721389, 9.343120331059675, 8.779343901388255, 7.897529690138032, 2.237718436634257, 0.0, 0.0, 0.0], [5086.851629852421, 209.36067972490926, 126.14219970118859, 91.28764818278431, 71.85677214069203, 59.306259338236934, 50.64452031579062, 44.21097429297261, 39.08214700954943, 35.18250316457909, 31.97883597652087, 29.25700085746234, 27.076215661451954, 25.10886840794048, 23.46531676558175, 21.99038407430703, 20.618287638016067, 19.4874963090874, 18.436718662531113, 17.528724949268433, 16.661463430214173, 15.872167021248666, 15.183052753286852, 14.464378587892503, 13.892084671816756, 13.284458078758103, 12.716795687671581, 12.205366655967854, 11.740359153699327, 11.242748994737806, 10.812006182293354, 10.294581419930124, 9.900544771721389, 9.343120331059675, 8.779343901388255, 7.897529690138032, 2.237718436634257, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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 = { 'alpha0.yoda' : [ [0.08451543082328201, 0.08451659994693331, 0.08451720140665898, 0.08451729072517342, 0.0845182877993348, 0.0845202035112289, 0.08451976586389817, 0.08452048308666477, 0.0845218758439423, 0.08452234552812778, 0.0845220373060303, 0.08452338365407835, 0.08452295529214418, 0.0845256759229158, 0.08452585094879579, 0.08452743556206097, 0.0845272802638076, 0.08453010358642381, 0.0845289159549683, 0.08452789577081359, 0.08452777527657317, 0.08452940886475376, 0.08453065930079251, 0.08453160760285232, 0.08453052543333947, 0.08453352026106989, 0.08453501313329477, 0.08454190201358414, 0.08453639463286408, 0.08453439726627465, 0.08454036940735853, 0.08453995881657554, 0.0845433933625173, 0.08454280336457212, 0.08454207382486725, 0.08454950758255865, 0.08464685599041064, 1.0, 1.0, 1.0], [0.08451543082328201, 0.08451659994693331, 0.08451720140665898, 0.08451729072517342, 0.0845182877993348, 0.0845202035112289, 0.08451976586389817, 0.08452048308666477, 0.0845218758439423, 0.08452234552812778, 0.0845220373060303, 0.08452338365407835, 0.08452295529214418, 0.0845256759229158, 0.08452585094879579, 0.08452743556206097, 0.0845272802638076, 0.08453010358642381, 0.0845289159549683, 0.08452789577081359, 0.08452777527657317, 0.08452940886475376, 0.08453065930079251, 0.08453160760285232, 0.08453052543333947, 0.08453352026106989, 0.08453501313329477, 0.08454190201358414, 0.08453639463286408, 0.08453439726627465, 0.08454036940735853, 0.08453995881657554, 0.0845433933625173, 0.08454280336457212, 0.08454207382486725, 0.08454950758255865, 0.08464685599041064, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }