import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['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' : [0.0, 2.178908273381294, 12.449901079136703, 13.701739208633088, 14.766902877697847, 15.638384892086325, 16.362854316546766, 16.91758273381295, 17.356219424460434, 18.400593525179833, 18.400953237410096, 17.348803956834534, 16.920562949640285, 16.35700539568346, 15.640339928057548, 14.763255395683455, 13.69762589928057, 12.439663669064759, 2.178152877697841, 0.0], '_alpha0.yoda' : [0.0, 2.178849, 12.44574, 13.70631, 14.7582, 15.6451, 16.35607, 16.91533, 17.35506, 18.40235, 18.40049, 17.35565, 16.91337, 16.35996, 15.63938, 14.75954, 13.70816, 12.44977, 2.179291, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.18416054226085257, 1.0522180699972992, 1.1580189295555778, 1.2480397133633965, 1.3216933157309152, 1.3829220782306735, 1.429804645922215, 1.4668778510443814, 1.5551432446436213, 1.5551753815461202, 1.4662503251644032, 1.4300571099851058, 1.3824317115089861, 1.3218594893953235, 1.2477324031158317, 1.157671516849396, 1.0513543014565268, 0.18409703300488797, 0.0], [0.0, 0.18416054226085257, 1.0522180699972992, 1.1580189295555778, 1.2480397133633965, 1.3216933157309152, 1.3829220782306735, 1.429804645922215, 1.4668778510443814, 1.5551432446436213, 1.5551753815461202, 1.4662503251644032, 1.4300571099851058, 1.3824317115089861, 1.3218594893953235, 1.2477324031158317, 1.157671516849396, 1.0513543014565268, 0.18409703300488797, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001055233, 0.002522, 0.002646642, 0.002746323, 0.002827639, 0.002891174, 0.002940188, 0.002978158, 0.003066701, 0.003066546, 0.002978209, 0.002940017, 0.002891518, 0.002827122, 0.002746446, 0.00264682, 0.002522408, 0.00105534, 0.0], [0.0, 0.001055233, 0.002522, 0.002646642, 0.002746323, 0.002827639, 0.002891174, 0.002940188, 0.002978158, 0.003066701, 0.003066546, 0.002978209, 0.002940017, 0.002891518, 0.002827122, 0.002746446, 0.00264682, 0.002522408, 0.00105534, 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], '_alpha0.yoda' : [1.0, 0.9999727967523838, 0.9996657741205932, 1.0003335920569874, 0.9994106497638723, 1.0004293990690223, 0.9995853830624216, 0.9998668406799959, 0.9999331983289633, 1.0000954575088985, 0.9999748253580063, 1.0003946118235298, 0.9995748989166795, 1.0001806323495694, 0.999938624859692, 0.9997483349312956, 1.000769045730763, 1.0008124279887385, 1.0005225171813295, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451963972538726, 0.08451617914945407, 0.08451619987234482, 0.08451601014104897, 0.08451597302735189, 0.08451594394702934, 0.08451589499630364, 0.0845159775392724, 0.0845159283865232, 0.0845160227017135, 0.08451593140441109, 0.08451592977380859, 0.08451618606629571, 0.08451603324963615, 0.08451607519305322, 0.08451621655911916, 0.08451629637472102, 0.08451979422099425, 1.0], [1.0, 0.08451963972538726, 0.08451617914945407, 0.08451619987234482, 0.08451601014104897, 0.08451597302735189, 0.08451594394702934, 0.08451589499630364, 0.0845159775392724, 0.0845159283865232, 0.0845160227017135, 0.08451593140441109, 0.08451592977380859, 0.08451618606629571, 0.08451603324963615, 0.08451607519305322, 0.08451621655911916, 0.08451629637472102, 0.08451979422099425, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00048429436561937437, 0.00020257189064950222, 0.00019316102574280672, 0.00018597826658342257, 0.00018081400473976715, 0.0001766912999449204, 0.00017379480545547945, 0.0001715902482658653, 0.00016666315658804426, 0.0001666514750858424, 0.00017166653144562967, 0.00017375408895969988, 0.00017677551177937856, 0.00018075834751701041, 0.00018603254677847122, 0.00019323202571469095, 0.00020277139857669801, 0.0004845114458244191, 1.0], [1.0, 0.00048429436561937437, 0.00020257189064950222, 0.00019316102574280672, 0.00018597826658342257, 0.00018081400473976715, 0.0001766912999449204, 0.00017379480545547945, 0.0001715902482658653, 0.00016666315658804426, 0.0001666514750858424, 0.00017166653144562967, 0.00017375408895969988, 0.00017677551177937856, 0.00018075834751701041, 0.00018603254677847122, 0.00019323202571469095, 0.00020277139857669801, 0.0004845114458244191, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }