import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 0.0, 0.0, 0.17885996951219513, 0.1979467682926829, 0.18994356707317078, 0.17973271341463407, 0.17392100609756111, 0.17041396341463408, 0.17281554878048774, 0.17895371951219527, 0.19437832317073164, 0.22259963414634137, 0.27789801829268285, 0.42160670731707306, 1.2507463414634168, 448.7137195121949, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.1796673, 0.1978179, 0.1892178, 0.1809924, 0.1743527, 0.1713994, 0.1726285, 0.1795913, 0.1953615, 0.2229756, 0.2774898, 0.4224326, 1.2514, 448.7267, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.01513700015839862, 0.0167491992181636, 0.016072487170408652, 0.015207129426541939, 0.014718456324406732, 0.014422201234875705, 0.014625028917943513, 0.01514046921337612, 0.016447674838249045, 0.01883285777109501, 0.023508723082626356, 0.03565256468794464, 0.10572685447551805, 37.9232386936567, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.01513700015839862, 0.0167491992181636, 0.016072487170408652, 0.015207129426541939, 0.014718456324406732, 0.014422201234875705, 0.014625028917943513, 0.01514046921337612, 0.016447674838249045, 0.01883285777109501, 0.023508723082626356, 0.03565256468794464, 0.10572685447551805, 37.9232386936567, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0004032544, 0.0004231334, 0.0004138333, 0.0004047386, 0.0003972453, 0.0003938666, 0.0003952763, 0.000403169, 0.000420498, 0.0004492346, 0.0005011503, 0.0006183341, 0.001064247, 0.0201528, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0004032544, 0.0004231334, 0.0004138333, 0.0004047386, 0.0003972453, 0.0003938666, 0.0003952763, 0.000403169, 0.000420498, 0.0004492346, 0.0005011503, 0.0006183341, 0.001064247, 0.0201528, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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], '_alpha3.yoda' : [1.0, 1.0, 1.0, 1.0045137572705995, 0.9993489750108354, 0.9961790384146507, 1.007008666154502, 1.0024821262947199, 1.0057826046975287, 0.9989176391718934, 1.0035628233352327, 1.0050580579831672, 1.0016889778597364, 0.9985310500046355, 1.0019589173241161, 1.0005226147899968, 1.0000289282169021, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.08463045252485375, 0.0846146636422896, 0.08461717034205822, 0.08460969145588916, 0.08462724920157375, 0.08463039615941012, 0.08462796907540067, 0.08460550166069242, 0.08461681616525871, 0.08460417216460436, 0.08459478490367252, 0.08456356141680596, 0.08453101238082691, 0.08451544279698815, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08463045252485375, 0.0846146636422896, 0.08461717034205822, 0.08460969145588916, 0.08462724920157375, 0.08463039615941012, 0.08462796907540067, 0.08460550166069242, 0.08461681616525871, 0.08460417216460436, 0.08459478490367252, 0.08456356141680596, 0.08453101238082691, 0.08451544279698815, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0022545816210289863, 0.002137612064342255, 0.0021787171125441777, 0.0022518916690824615, 0.002284055899361374, 0.0023112343150055344, 0.0022872727760282984, 0.0022529232759117084, 0.0021632967768255556, 0.002018128204580356, 0.0018033604668320712, 0.0014666135269403493, 0.0008508895566744524, 4.4912377588785305e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0022545816210289863, 0.002137612064342255, 0.0021787171125441777, 0.0022518916690824615, 0.002284055899361374, 0.0023112343150055344, 0.0022872727760282984, 0.0022529232759117084, 0.0021632967768255556, 0.002018128204580356, 0.0018033604668320712, 0.0014666135269403493, 0.0008508895566744524, 4.4912377588785305e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }