import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], } 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, 2.2883309352517975, 13.06992805755397, 14.381962230215823, 15.472949640287773, 16.396424460431646, 17.122215827338135, 17.688097122302157, 18.09658273381295, 18.670215827338108, 18.680251798561176, 18.108669064748202, 17.688694244604317, 17.135053956834536, 16.39549640287769, 15.492199640287772, 14.379955035971218, 13.069303956834544, 2.2892805755395673, 0.0], '_alpha1.yoda' : [0.0, 2.289111, 13.07001, 14.38354, 15.47806, 16.39507, 17.13411, 17.69768, 18.09504, 18.679, 18.68608, 18.09602, 17.6965, 17.12848, 16.39488, 15.47816, 14.37519, 13.06956, 2.289772, 0.0], } xerrs = { 'alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.19340905758983168, 1.1046199756551707, 1.215510020956214, 1.3077147536529077, 1.3857607291698637, 1.4471005520569655, 1.4949279575833991, 1.529451713140708, 1.5779293700080868, 1.5787809328700755, 1.5304737727075584, 1.4949774010799164, 1.4481866517952615, 1.3856822934773325, 1.3093401651721832, 1.2153407512542864, 1.1045681409084946, 0.19349015823360188, 0.0], [0.0, 0.19340905758983168, 1.1046199756551707, 1.215510020956214, 1.3077147536529077, 1.3857607291698637, 1.4471005520569655, 1.4949279575833991, 1.529451713140708, 1.5779293700080868, 1.5787809328700755, 1.5304737727075584, 1.4949774010799164, 1.4481866517952615, 1.3856822934773325, 1.3093401651721832, 1.2153407512542864, 1.1045681409084946, 0.19349015823360188, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001104447, 0.002639062, 0.0027685, 0.002871904, 0.002955754, 0.003021638, 0.003070929, 0.003105213, 0.00315492, 0.003155519, 0.003105297, 0.003070827, 0.003021142, 0.002955737, 0.002871913, 0.002767696, 0.002639016, 0.001104607, 0.0], [0.0, 0.001104447, 0.002639062, 0.0027685, 0.002871904, 0.002955754, 0.003021638, 0.003070929, 0.003105213, 0.00315492, 0.003155519, 0.003105297, 0.003070827, 0.003021142, 0.002955737, 0.002871913, 0.002767696, 0.002639016, 0.001104607, 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.0003408880840554, 1.0000062695407097, 1.0001097047648242, 1.0003302770209321, 0.9999173929392402, 1.0006946631663687, 1.0005417698484795, 0.9999147499925459, 1.0004704912221223, 1.0003119980127502, 0.9993014911972284, 1.00044128499751, 0.9996163445501195, 0.9999624041344927, 0.9990937606915895, 0.9996686334582202, 1.0000195911860572, 1.000214663272682, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451970587398881, 0.08451614812192774, 0.08451628515631093, 0.08451619012886455, 0.08451603168203067, 0.08451596257456682, 0.08451604190359793, 0.08451605121462909, 0.08451586123056934, 0.08451604131972563, 0.08451608272453895, 0.08451598407473959, 0.08451602518693171, 0.0845160316850255, 0.08451609168314732, 0.08451631094910463, 0.08451621789168541, 0.0845200716334203, 1.0], [1.0, 0.08451970587398881, 0.08451614812192774, 0.08451628515631093, 0.08451619012886455, 0.08451603168203067, 0.08451596257456682, 0.08451604190359793, 0.08451605121462909, 0.08451586123056934, 0.08451604131972563, 0.08451608272453895, 0.08451598407473959, 0.08451602518693171, 0.0845160316850255, 0.08451609168314732, 0.08451631094910463, 0.08451621789168541, 0.0845200716334203, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00048264304038632053, 0.00020191863248051416, 0.00019249807193788288, 0.00018560804932255873, 0.00018026820464015896, 0.00017647470575481888, 0.0001736155663758765, 0.00017159112555532364, 0.0001689814423773488, 0.0001689227229925803, 0.00017148123856573324, 0.0001736039391905206, 0.00017631353876157354, 0.00018027737174711083, 0.00018537800097356952, 0.00019246903019353362, 0.00020192475503792506, 0.0004825127211589833, 1.0], [1.0, 0.00048264304038632053, 0.00020191863248051416, 0.00019249807193788288, 0.00018560804932255873, 0.00018026820464015896, 0.00017647470575481888, 0.0001736155663758765, 0.00017159112555532364, 0.0001689814423773488, 0.0001689227229925803, 0.00017148123856573324, 0.0001736039391905206, 0.00017631353876157354, 0.00018027737174711083, 0.00018537800097356952, 0.00019246903019353362, 0.00020192475503792506, 0.0004825127211589833, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }