import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha0.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha0.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha0.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 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, 0.0, 0.0, 0.8128954268292683, 1.105494207317073, 1.2393585365853659, 1.3714088414634142, 1.525825000000001, 1.7065829268292676, 1.941910060975609, 2.255801219512197, 2.6807076219512185, 3.3161006097560968, 4.336304878048779, 6.2715182926829245, 11.646841463414654, 399.1310975609755, 0.0, 0.0, 0.0], '_alpha0.yoda' : [0.0, 0.0, 0.0, 0.810517, 1.107389, 1.241977, 1.372366, 1.52266, 1.704397, 1.941063, 2.25097, 2.68177, 3.314613, 4.333287, 6.272977, 11.64466, 399.145, 0.0, 0.0, 0.0], } xerrs = { 'alpha0.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha0.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.0687237457306111, 0.09344849395101702, 0.10476152772774026, 0.11592744761808266, 0.12897282010331312, 0.14424869204829638, 0.16414088822348183, 0.19066735335171148, 0.22658072207691163, 0.28028337924313734, 0.3665051364180601, 0.5300567704995467, 0.9843539162118942, 33.732741197142694, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0687237457306111, 0.09344849395101702, 0.10476152772774026, 0.11592744761808266, 0.12897282010331312, 0.14424869204829638, 0.16414088822348183, 0.19066735335171148, 0.22658072207691163, 0.28028337924313734, 0.3665051364180601, 0.5300567704995467, 0.9843539162118942, 33.732741197142694, 0.0, 0.0, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.0008439141, 0.0009864322, 0.001044658, 0.001098127, 0.001156695, 0.001223778, 0.001305982, 0.001406378, 0.00153507, 0.001706607, 0.001951309, 0.002347762, 0.003198752, 0.01872762, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0008439141, 0.0009864322, 0.001044658, 0.001098127, 0.001156695, 0.001223778, 0.001305982, 0.001406378, 0.00153507, 0.001706607, 0.001951309, 0.002347762, 0.003198752, 0.01872762, 0.0, 0.0, 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, 1.0, 1.0, 0.9970741294011883, 1.0017139779389033, 1.0021127569927009, 1.000697938140434, 0.9979257123195641, 0.9987191206504515, 0.9995638000993807, 0.9978583132811493, 1.0003963050800775, 0.9995513978822838, 0.9993040438498558, 1.0002325923722135, 0.9998126991406634, 1.0000348317610666, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.08454192687326446, 0.08453096663238736, 0.08452883054840231, 0.08453164666371689, 0.08452661353911034, 0.08452486532037568, 0.08452548422403147, 0.08452311830602792, 0.08452272833543455, 0.0845219769323442, 0.08452014946490054, 0.08451809366768044, 0.08451681250268332, 0.08451544217746482, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08454192687326446, 0.08453096663238736, 0.08452883054840231, 0.08453164666371689, 0.08452661353911034, 0.08452486532037568, 0.08452548422403147, 0.08452311830602792, 0.08452272833543455, 0.0845219769323442, 0.08452014946490054, 0.08451809366768044, 0.08451681250268332, 0.08451544217746482, 1.0, 1.0, 1.0], ], '_alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.001038158257688472, 0.0008922997456440546, 0.0008429021700840521, 0.000800729123802499, 0.0007580784165943009, 0.0007170926069638519, 0.0006725244522106647, 0.0006234494368719778, 0.0005726361157143507, 0.0005146427086618229, 0.0004499934978921586, 0.0003743530498410839, 0.0002746454487294258, 4.692097437268458e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.001038158257688472, 0.0008922997456440546, 0.0008429021700840521, 0.000800729123802499, 0.0007580784165943009, 0.0007170926069638519, 0.0006725244522106647, 0.0006234494368719778, 0.0005726361157143507, 0.0005146427086618229, 0.0004499934978921586, 0.0003743530498410839, 0.0002746454487294258, 4.692097437268458e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }