import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 378.50733333333295, 1006.4483333333333, 891.915, 796.1135, 716.4709166666668, 652.5328333333333, 605.3469166666667, 573.583, 557.6883333333334, 557.4136666666667, 573.9108333333334, 605.5409166666667, 653.6215833333333, 717.3965833333334, 797.1467500000001, 893.1216666666667, 1006.8641666666667, 378.3154166666663, 0.0], '_alpha1.yoda' : [0.0, 378.6151, 1006.261, 892.2925, 796.1626, 716.3521, 652.5816, 605.2675, 573.4627, 557.6831, 557.6007, 573.662, 605.5952, 653.2736, 717.4092, 796.9993, 893.3444, 1007.117, 378.5779, 0.0], } xerrs = { 'alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 31.99018946837015, 85.06096669774895, 75.381133433889, 67.28448104049617, 60.55325938562038, 55.14963231468044, 51.16163791792093, 48.47707791661264, 47.133734085990774, 47.11058208560413, 48.50485370901899, 51.17816781705956, 55.24156546981227, 60.63151454116544, 67.37162174585578, 75.48302789369276, 85.09594258508713, 31.97401288546682, 0.0], [0.0, 31.99018946837015, 85.06096669774895, 75.381133433889, 67.28448104049617, 60.55325938562038, 55.14963231468044, 51.16163791792093, 48.47707791661264, 47.133734085990774, 47.11058208560413, 48.50485370901899, 51.17816781705956, 55.24156546981227, 60.63151454116544, 67.37162174585578, 75.48302789369276, 85.09594258508713, 31.97401288546682, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.09675264, 0.1577318, 0.1485311, 0.1403023, 0.1330844, 0.1270227, 0.1223313, 0.1190739, 0.1174242, 0.1174155, 0.1190946, 0.1223644, 0.12709, 0.1331826, 0.140376, 0.1486187, 0.1577988, 0.09674789, 0.0], [0.0, 0.09675264, 0.1577318, 0.1485311, 0.1403023, 0.1330844, 0.1270227, 0.1223313, 0.1190739, 0.1174242, 0.1174155, 0.1190946, 0.1223644, 0.12709, 0.1331826, 0.140376, 0.1486187, 0.1577988, 0.09674789, 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.0002847148712233, 0.9998138669148442, 1.0004232466098228, 1.000061674623028, 0.9998341640059591, 1.0000747344258794, 0.9998688080099524, 0.9997902657505541, 0.9999906160250795, 1.0003355377604064, 0.9995664250979754, 1.0000896443689258, 0.9994676073400779, 1.0000175867392733, 0.9998150277850344, 1.0002493874481453, 1.0002511096746747, 1.0006938214034375, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451669664269873, 0.08451597949000425, 0.08451605078274164, 0.08451619152356564, 0.08451600473518225, 0.08451625649694834, 0.08451622781799514, 0.08451623900396742, 0.08451626341951586, 0.08451637428864163, 0.08451635845118621, 0.08451644869644986, 0.08451612810594755, 0.08451603471464182, 0.08451595863102468, 0.08451595198156216, 0.08451581196578531, 0.08451681183703683, 1.0], [1.0, 0.08451669664269873, 0.08451597949000425, 0.08451605078274164, 0.08451619152356564, 0.08451600473518225, 0.08451625649694834, 0.08451622781799514, 0.08451623900396742, 0.08451626341951586, 0.08451637428864163, 0.08451635845118621, 0.08451644869644986, 0.08451612810594755, 0.08451603471464182, 0.08451595863102468, 0.08451595198156216, 0.08451581196578531, 0.08451681183703683, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00025561628924846927, 0.0001567212094013768, 0.00016653055504167998, 0.00017623404200531705, 0.00018574989843155994, 0.00019466100939492955, 0.00020208461731929746, 0.0002075966337914478, 0.00021055523843963026, 0.00021064338214408091, 0.00020751411732078008, 0.00020207453638902185, 0.0001944397235964388, 0.0001856471066270992, 0.00017609806475407444, 0.00016640364414702736, 0.00015672302702201635, 0.0002557334058771508, 1.0], [1.0, 0.00025561628924846927, 0.0001567212094013768, 0.00016653055504167998, 0.00017623404200531705, 0.00018574989843155994, 0.00019466100939492955, 0.00020208461731929746, 0.0002075966337914478, 0.00021055523843963026, 0.00021064338214408091, 0.00020751411732078008, 0.00020207453638902185, 0.0001944397235964388, 0.0001856471066270992, 0.00017609806475407444, 0.00016640364414702736, 0.00015672302702201635, 0.0002557334058771508, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }