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.3994850609756097, 0.403915243902439, 0.3760615853658537, 0.3575820121951218, 0.3402256097560978, 0.33449908536585354, 0.3310618902439023, 0.33890457317073197, 0.3560073170731706, 0.3892445121951218, 0.4548088414634145, 0.6196390243902437, 1.4948381097561003, 426.9402439024389, 0.0, 0.0, 0.0], '_alpha0.yoda' : [0.0, 0.0, 0.0, 0.4012635, 0.4031884, 0.3774029, 0.3563716, 0.3423869, 0.3334891, 0.3308884, 0.3398971, 0.3557938, 0.3895476, 0.4542311, 0.6200487, 1.493804, 426.9539, 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.033777282030680485, 0.034159650063268696, 0.03180145500059188, 0.030242276583953932, 0.02877099271079373, 0.028284902210187268, 0.02800047869162494, 0.028664956144003734, 0.030104719755325703, 0.032914405967092386, 0.03845892481567046, 0.05238749772802141, 0.12635652249220725, 36.0830480260233, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.033777282030680485, 0.034159650063268696, 0.03180145500059188, 0.030242276583953932, 0.02877099271079373, 0.028284902210187268, 0.02800047869162494, 0.028664956144003734, 0.030104719755325703, 0.032914405967092386, 0.03845892481567046, 0.05238749772802141, 0.12635652249220725, 36.0830480260233, 0.0, 0.0, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.00058959, 0.0005910025, 0.0005717917, 0.0005556314, 0.0005446203, 0.000537497, 0.0005353971, 0.0005426365, 0.0005551808, 0.0005809189, 0.0006272977, 0.0007329058, 0.00113758, 0.01923206, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.00058959, 0.0005910025, 0.0005717917, 0.0005556314, 0.0005446203, 0.000537497, 0.0005353971, 0.0005426365, 0.0005551808, 0.0005809189, 0.0006272977, 0.0007329058, 0.00113758, 0.01923206, 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, 1.0044518286116808, 0.9982005039091455, 1.0035667419548886, 0.9966150081552164, 1.0063525207448423, 0.9969806035052415, 0.9994759582754316, 1.00292863215147, 0.9994002452676366, 1.0007786565908636, 0.9987297048545593, 1.0006611520476127, 0.9993082128764639, 1.0000319859693625, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.08455205295584942, 0.08457133168145434, 0.08456448687693971, 0.0845743788908812, 0.08456445336792603, 0.08455898221440894, 0.08457777689542044, 0.08458120194667015, 0.08456208148423602, 0.08455971744206105, 0.08456063583092009, 0.0845451878689748, 0.08452856644979685, 0.08451545278610165, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08455205295584942, 0.08457133168145434, 0.08456448687693971, 0.0845743788908812, 0.08456445336792603, 0.08455898221440894, 0.08457777689542044, 0.08458120194667015, 0.08456208148423602, 0.08455971744206105, 0.08456063583092009, 0.0845451878689748, 0.08452856644979685, 0.08451545278610165, 1.0, 1.0, 1.0], ], '_alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.0014758749640352558, 0.0014631844401068205, 0.0015204735666997976, 0.001553857244074147, 0.0016007622130222044, 0.0016068713593405505, 0.0016172115117374529, 0.0016011483554889442, 0.0015594645766392858, 0.0014924266927334227, 0.001379255728586052, 0.0011827947742981757, 0.0007610054845240793, 4.504625711600699e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0014758749640352558, 0.0014631844401068205, 0.0015204735666997976, 0.001553857244074147, 0.0016007622130222044, 0.0016068713593405505, 0.0016172115117374529, 0.0016011483554889442, 0.0015594645766392858, 0.0014924266927334227, 0.001379255728586052, 0.0011827947742981757, 0.0007610054845240793, 4.504625711600699e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }