import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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' : [0.0, 380.5921666666663, 1008.09, 893.2075, 797.2224166666667, 717.49375, 653.4386666666667, 606.1950833333333, 574.3771666666667, 558.4690833333333, 558.1909166666667, 574.7073333333333, 606.421, 654.5334166666667, 718.4406666666666, 798.2955833333333, 894.4275, 1008.4950000000001, 380.42824999999965, 0.0], '_alpha2.yoda' : [0.0, 380.6971, 1007.904, 893.5791, 797.2883, 717.3487, 653.5011, 606.1056, 574.2525, 558.4471, 558.3658, 574.4763, 606.4339, 654.1878, 718.4464, 798.1399, 894.6756, 1008.79, 380.6753, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 32.16637521456906, 85.19968375006513, 75.49033694601066, 67.37819771838497, 60.6396975311278, 55.22619522372412, 51.23331706787857, 48.544195213113674, 47.19971604198954, 47.17627993906354, 48.572154231273984, 51.25256091162665, 55.31863509604055, 60.71976270814415, 67.46871188434928, 75.59332899726594, 85.23378796645795, 32.15258759243005, 0.0], [0.0, 32.16637521456906, 85.19968375006513, 75.49033694601066, 67.37819771838497, 60.6396975311278, 55.22619522372412, 51.23331706787857, 48.544195213113674, 47.19971604198954, 47.17627993906354, 48.572154231273984, 51.25256091162665, 55.31863509604055, 60.71976270814415, 67.46871188434928, 75.59332899726594, 85.23378796645795, 32.15258759243005, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.09710089, 0.1579949, 0.1487647, 0.140521, 0.1332903, 0.1272204, 0.1225202, 0.1192573, 0.1176046, 0.1175961, 0.1192805, 0.1225534, 0.1272872, 0.1333923, 0.140596, 0.148856, 0.1580643, 0.09709811, 0.0], [0.0, 0.09710089, 0.1579949, 0.1487647, 0.140521, 0.1332903, 0.1272204, 0.1225202, 0.1192573, 0.1176046, 0.1175961, 0.1192805, 0.1225534, 0.1272872, 0.1333923, 0.140596, 0.148856, 0.1580643, 0.09709811, 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], '_alpha2.yoda' : [1.0, 1.0002757107017013, 0.9998154926643454, 1.0004160287503185, 1.0000826410948263, 0.999797837960261, 1.0000955458201637, 0.999852385253867, 0.9997829533033319, 0.9999606364363053, 1.000313303796446, 0.9995979982855043, 1.0000212723503967, 0.9994719648258347, 1.0000079802461073, 0.9998049803398846, 1.0002773841367802, 1.0002925150843582, 1.0006493997225505, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451665071378442, 0.08451594971685576, 0.08451601329591463, 0.0845161855835735, 0.08451599408514403, 0.08451626455692468, 0.08451622006921905, 0.08451623433228458, 0.08451625604817493, 0.08451638772767, 0.08451632929329941, 0.08451646778661466, 0.08451613575019745, 0.08451604360018246, 0.08451595285374051, 0.08451588194377514, 0.08451582602438083, 0.08451682437471476, 1.0], [1.0, 0.08451665071378442, 0.08451594971685576, 0.08451601329591463, 0.0845161855835735, 0.08451599408514403, 0.08451626455692468, 0.08451622006921905, 0.08451623433228458, 0.08451625604817493, 0.08451638772767, 0.08451632929329941, 0.08451646778661466, 0.08451613575019745, 0.08451604360018246, 0.08451595285374051, 0.08451588194377514, 0.08451582602438083, 0.08451682437471476, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0002551310786305378, 0.0001567269787419774, 0.00016655110934469316, 0.00017626323227029178, 0.00018577207118528906, 0.00019469371264632847, 0.00020211348354442005, 0.00020762890121850828, 0.00021058390430147658, 0.00021067361809154006, 0.00020754998776188695, 0.00020209293543594302, 0.0001944701320953692, 0.00018566919467253616, 0.00017612022781453028, 0.00016642600993372854, 0.0001567328544018562, 0.0002552337004415421, 1.0], [1.0, 0.0002551310786305378, 0.0001567269787419774, 0.00016655110934469316, 0.00017626323227029178, 0.00018577207118528906, 0.00019469371264632847, 0.00020211348354442005, 0.00020762890121850828, 0.00021058390430147658, 0.00021067361809154006, 0.00020754998776188695, 0.00020209293543594302, 0.0001944701320953692, 0.00018566919467253616, 0.00017612022781453028, 0.00016642600993372854, 0.0001567328544018562, 0.0002552337004415421, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }