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' : [43577.200000000004, 3022.973090909091, 1411.9570909090908, 895.4996363636365, 649.0661818181816, 504.41672727272737, 410.5636363636364, 344.2689090909091, 294.4831272727273, 256.2305818181816, 225.54789090909117, 200.5324363636362, 179.49509090909112, 162.40418181818168, 146.92832727272744, 133.85414545454532, 122.72112727272716, 113.21552727272741, 104.13101818181829, 96.79898181818153, 89.64138181818193, 83.7908000000001, 78.31770909090918, 73.52709090909069, 69.09698181818189, 65.29949090909098, 61.25807272727255, 58.07512727272734, 55.40287272727279, 52.670363636363696, 50.38487272727258, 48.61160000000005, 47.15909090909096, 46.785818181818044, 48.88989090909096, 63.506145454545525, 195.21334545454488, 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' : [ [3682.945282028125, 255.4899878357223, 119.33451836215399, 75.68565701429797, 54.858567966534096, 42.632746502895706, 34.70115533837717, 29.098430845768135, 24.890352606834686, 21.657392378310423, 19.06477171804472, 16.949987688627612, 15.172375942334732, 13.727877169112768, 12.420005190241273, 11.31512963592047, 10.374104442081082, 9.570808233787472, 8.803209782763275, 8.183244320152331, 7.579103939709875, 7.083624229969082, 6.621017374571695, 6.215997489815146, 5.8424143090573235, 5.521408372256413, 5.179270825221595, 4.910279990670279, 4.684198159417924, 4.453730537704249, 4.260846926248996, 4.11057897432129, 3.9885356371638023, 3.9565340872373365, 4.1341440598312555, 5.369641014825781, 16.500846960481198, 0.0, 0.0, 0.0], [3682.945282028125, 255.4899878357223, 119.33451836215399, 75.68565701429797, 54.858567966534096, 42.632746502895706, 34.70115533837717, 29.098430845768135, 24.890352606834686, 21.657392378310423, 19.06477171804472, 16.949987688627612, 15.172375942334732, 13.727877169112768, 12.420005190241273, 11.31512963592047, 10.374104442081082, 9.570808233787472, 8.803209782763275, 8.183244320152331, 7.579103939709875, 7.083624229969082, 6.621017374571695, 6.215997489815146, 5.8424143090573235, 5.521408372256413, 5.179270825221595, 4.910279990670279, 4.684198159417924, 4.453730537704249, 4.260846926248996, 4.11057897432129, 3.9885356371638023, 3.9565340872373365, 4.1341440598312555, 5.369641014825781, 16.500846960481198, 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.08451541820098869, 0.0845161303632013, 0.08451709979750183, 0.08451779759692077, 0.08451922084873195, 0.08451889915190122, 0.08452077160492202, 0.08452238955474274, 0.08452216885004478, 0.08452305819481873, 0.08452649076523143, 0.0845249177439369, 0.08452808299932328, 0.08452908672315904, 0.08453104599215465, 0.08453327760224583, 0.08453397285885723, 0.08453618036625081, 0.08453974556738131, 0.08453853714621709, 0.0845491645262948, 0.08453940325153923, 0.08454048837008483, 0.08454023425869849, 0.08455382789990366, 0.08455515189150922, 0.08454838023194525, 0.0845504817856197, 0.08454792917465569, 0.08455856823873126, 0.0845659956176224, 0.08455963132917421, 0.08457617736636487, 0.08456695299976455, 0.08456030445063892, 0.08455309287617051, 0.0845272484934868, 1.0, 1.0, 1.0], [0.08451541820098869, 0.0845161303632013, 0.08451709979750183, 0.08451779759692077, 0.08451922084873195, 0.08451889915190122, 0.08452077160492202, 0.08452238955474274, 0.08452216885004478, 0.08452305819481873, 0.08452649076523143, 0.0845249177439369, 0.08452808299932328, 0.08452908672315904, 0.08453104599215465, 0.08453327760224583, 0.08453397285885723, 0.08453618036625081, 0.08453974556738131, 0.08453853714621709, 0.0845491645262948, 0.08453940325153923, 0.08454048837008483, 0.08454023425869849, 0.08455382789990366, 0.08455515189150922, 0.08454838023194525, 0.0845504817856197, 0.08454792917465569, 0.08455856823873126, 0.0845659956176224, 0.08455963132917421, 0.08457617736636487, 0.08456695299976455, 0.08456030445063892, 0.08455309287617051, 0.0845272484934868, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }