import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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, 0.0, 0.0, 0.17471265243902437, 0.18967658536585363, 0.18200716463414637, 0.17280582317073165, 0.16736320121951231, 0.16386624999999996, 0.16657786585365847, 0.1727056097560977, 0.18834503048780482, 0.21605576219512188, 0.27136085365853646, 0.41432286585365835, 1.2441774390243925, 448.7487804878047, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.1755558, 0.189383, 0.1809721, 0.1734807, 0.1674453, 0.1645847, 0.1661983, 0.1733332, 0.1888808, 0.2162203, 0.2706686, 0.415283, 1.244609, 448.7648, 0.0, 0.0, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.01478628991407116, 0.01604980964989116, 0.015402564547699326, 0.014621399428144988, 0.01416486841358935, 0.013867678918626749, 0.014100505932379794, 0.014612057770971253, 0.01593706950521454, 0.018280984572400558, 0.022955207527862464, 0.03503578097944979, 0.10517130547323032, 37.92619205801467, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.01478628991407116, 0.01604980964989116, 0.015402564547699326, 0.014621399428144988, 0.01416486841358935, 0.013867678918626749, 0.014100505932379794, 0.014612057770971253, 0.01593706950521454, 0.018280984572400558, 0.022955207527862464, 0.03503578097944979, 0.10517130547323032, 37.92619205801467, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0003985912, 0.0004139908, 0.0004046933, 0.0003962285, 0.0003892752, 0.0003859356, 0.0003878229, 0.00039606, 0.0004134414, 0.0004423524, 0.0004949246, 0.0006130448, 0.001061296, 0.02015253, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0003985912, 0.0004139908, 0.0004046933, 0.0003962285, 0.0003892752, 0.0003859356, 0.0003878229, 0.00039606, 0.0004134414, 0.0004423524, 0.0004949246, 0.0006130448, 0.001061296, 0.02015253, 0.0, 0.0, 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.0, 1.0, 1.0048259101399075, 0.9984521791907665, 0.9943130555534615, 1.003905405598523, 1.0004905426036874, 1.0043843683491875, 0.9977213908239649, 1.003633872951716, 1.0028446171943457, 1.0007615524955522, 0.99744895533308, 1.0023173573690254, 1.000346864492211, 1.000035698174328, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.08463204986960891, 0.08461671544188666, 0.08462614413372192, 0.08461172870140544, 0.08463550117573825, 0.08462803608813134, 0.08464813653434204, 0.08460673507714678, 0.08461635257345668, 0.08461234445527464, 0.08459292200174114, 0.08456154334437498, 0.08453079293553112, 0.08451542089270449, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08463204986960891, 0.08461671544188666, 0.08462614413372192, 0.08461172870140544, 0.08463550117573825, 0.08462803608813134, 0.08464813653434204, 0.08460673507714678, 0.08461635257345668, 0.08461234445527464, 0.08459292200174114, 0.08456154334437498, 0.08453079293553112, 0.08451542089270449, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.002281410043494763, 0.002182614154517189, 0.0022235020297880926, 0.0022929117360155587, 0.0023259306535934957, 0.002355186623236939, 0.0023281778645231842, 0.0022932665624430673, 0.002195127734080406, 0.002047399224652512, 0.0018238614499008843, 0.0014796306226954213, 0.000853010162949268, 4.4908266888421476e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002281410043494763, 0.002182614154517189, 0.0022235020297880926, 0.0022929117360155587, 0.0023259306535934957, 0.002355186623236939, 0.0023281778645231842, 0.0022932665624430673, 0.002195127734080406, 0.002047399224652512, 0.0018238614499008843, 0.0014796306226954213, 0.000853010162949268, 4.4908266888421476e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }