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.1747223475609756, 0.18929521341463412, 0.18094710365853664, 0.17375600609756092, 0.16458051829268305, 0.16480996951219506, 0.1650943902439024, 0.17300295731707327, 0.1892176524390243, 0.21568731707317068, 0.27085021341463406, 0.41662073170731695, 1.2440481707317097, 448.7499999999999, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.1758065, 0.1892337, 0.1810165, 0.1730553, 0.1670417, 0.1639702, 0.165667, 0.1741784, 0.1883622, 0.2160864, 0.2705799, 0.4154061, 1.243294, 448.7677, 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.014787528257591463, 0.016017762880372842, 0.01530794474182989, 0.014704692132172063, 0.013928049260989067, 0.013946229706340369, 0.01397238834558052, 0.01464695514138492, 0.01600694248640995, 0.018249733624485145, 0.022908001805011135, 0.03522785048835287, 0.1051608760908842, 37.9263145992842, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.014787528257591463, 0.016017762880372842, 0.01530794474182989, 0.014704692132172063, 0.013928049260989067, 0.013946229706340369, 0.01397238834558052, 0.01464695514138492, 0.01600694248640995, 0.018249733624485145, 0.022908001805011135, 0.03522785048835287, 0.1051608760908842, 37.9263145992842, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0003988757, 0.0004138275, 0.0004047429, 0.0003957425, 0.0003888057, 0.0003852145, 0.0003872026, 0.0003970245, 0.0004128735, 0.0004422154, 0.0004948436, 0.0006131357, 0.001060736, 0.02015259, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0003988757, 0.0004138275, 0.0004047429, 0.0003957425, 0.0003888057, 0.0003852145, 0.0003872026, 0.0003970245, 0.0004128735, 0.0004422154, 0.0004948436, 0.0006131357, 0.001060736, 0.02015259, 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.006205001559094, 0.9996750397776865, 1.0003835172824558, 0.9959672985510066, 1.014954271215382, 0.9949046194554819, 1.0034683780306022, 1.0067943502305132, 0.9954790029999978, 1.001850284626119, 0.9990019819027417, 0.9970845624932313, 0.9993937769055468, 1.0000394428969361, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.08463444123786643, 0.0846178970478634, 0.0845990039758655, 0.08462839623463513, 0.08462756956579764, 0.08462006119907947, 0.08463272631455493, 0.08466303332919642, 0.08459539731140156, 0.08461199236065432, 0.08457811982574356, 0.08455616297342837, 0.08453119305583795, 0.08451546428809852, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08463444123786643, 0.0846178970478634, 0.0845990039758655, 0.08462839623463513, 0.08462756956579764, 0.08462006119907947, 0.08463272631455493, 0.08466303332919642, 0.08459539731140156, 0.08461199236065432, 0.08457811982574356, 0.08455616297342837, 0.08453119305583795, 0.08451546428809852, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.00228291174865767, 0.00218614878070661, 0.0022368023130327967, 0.0022775759462254075, 0.002362404153501111, 0.002337325230628698, 0.0023453407437282743, 0.0022949000766059077, 0.0021820030778209195, 0.002050261489645128, 0.001827000960277861, 0.001471687924619983, 0.0008526486553781183, 4.490827855153205e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.00228291174865767, 0.00218614878070661, 0.0022368023130327967, 0.0022775759462254075, 0.002362404153501111, 0.002337325230628698, 0.0023453407437282743, 0.0022949000766059077, 0.0021820030778209195, 0.002050261489645128, 0.001827000960277861, 0.001471687924619983, 0.0008526486553781183, 4.490827855153205e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }