import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], } ref_xerrs = [ [abs(xpoints['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 2.010228417266186, 12.385154676259003, 14.041120503597117, 15.332208633093527, 16.400688848920858, 17.276151079136696, 17.981994604316544, 18.56428057553957, 19.408165467625878, 19.40372302158276, 18.56543165467626, 17.98688848920863, 17.286514388489213, 16.402021582733806, 15.332143884892089, 14.036244604316542, 12.378120503597133, 2.0133489208633084, 0.0], '_alpha1.yoda' : [0.0, 2.009677, 12.38165, 14.04382, 15.32178, 16.39548, 17.2805, 17.99025, 18.5678, 19.40853, 19.40564, 18.56525, 17.99029, 17.28149, 16.39751, 15.33028, 14.04177, 12.38883, 2.010765, 0.0], } xerrs = { 'alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.1699050466726645, 1.0467472927755659, 1.186700815115166, 1.2958201856039135, 1.3861216862239172, 1.4601128847274782, 1.5197643777179217, 1.5689795389501486, 1.6402992079621366, 1.639924763410354, 1.5690762314074835, 1.5201798046194255, 1.460989722200803, 1.3862367339277057, 1.2958129461653478, 1.1862879064317933, 1.0461514569933998, 0.1701698536770265, 0.0], [0.0, 0.1699050466726645, 1.0467472927755659, 1.186700815115166, 1.2958201856039135, 1.3861216862239172, 1.4601128847274782, 1.5197643777179217, 1.5689795389501486, 1.6402992079621366, 1.639924763410354, 1.5690762314074835, 1.5201798046194255, 1.460989722200803, 1.3862367339277057, 1.2958129461653478, 1.1862879064317933, 1.0461514569933998, 0.1701698536770265, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001035572, 0.002570434, 0.002737535, 0.002859379, 0.00295787, 0.003036654, 0.003098388, 0.003147729, 0.003218203, 0.003217963, 0.003147513, 0.003098391, 0.003036741, 0.002958053, 0.002860172, 0.002737336, 0.002571178, 0.001035852, 0.0], [0.0, 0.001035572, 0.002570434, 0.002737535, 0.002859379, 0.00295787, 0.003036654, 0.003098388, 0.003147729, 0.003218203, 0.003217963, 0.003147513, 0.003098391, 0.003036741, 0.002958053, 0.002860172, 0.002737336, 0.002571178, 0.001035852, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 0.9997256942238752, 0.9997170260403998, 1.000192256479972, 0.9993198218636931, 0.9996824006010454, 1.0002517297309674, 1.0004590923234664, 1.000189580438957, 1.0000187824230338, 1.0000987943610156, 0.9999902154348124, 1.0001891105731495, 0.9997093463507857, 0.9997249373980489, 0.9998784328593521, 1.0003936519944772, 1.000865195681344, 0.9987166055339278, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08452026904670226, 0.08451628745356461, 0.08451610502246965, 0.08451621137002883, 0.08451606508681019, 0.08451609840867641, 0.0845158955477111, 0.08451604319196981, 0.0845159327757312, 0.08451598497805116, 0.0845160112941551, 0.08451599650108849, 0.0845161545796445, 0.08451621203736125, 0.08451609611113874, 0.08451604683969216, 0.0845161797131789, 0.08452079612909767, 1.0], [1.0, 0.08452026904670226, 0.08451628745356461, 0.08451610502246965, 0.08451621137002883, 0.08451606508681019, 0.08451609840867641, 0.0845158955477111, 0.08451604319196981, 0.0845159327757312, 0.08451598497805116, 0.0845160112941551, 0.08451599650108849, 0.0845161545796445, 0.08451621203736125, 0.08451609611113874, 0.08451604683969216, 0.0845161797131789, 0.08452079612909767, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0005151514082207276, 0.00020754153397270386, 0.00019496556555430788, 0.00018649491853562605, 0.00018035035157652074, 0.00017577144272992457, 0.00017230502334019375, 0.0001695583616715786, 0.00016581696015361054, 0.0001658425548757143, 0.00016953621432266587, 0.00017225830926004255, 0.0001756711001277454, 0.00018034685450688003, 0.0001865474275139266, 0.0001950191149531686, 0.00020771958063042003, 0.0005144920432151595, 1.0], [1.0, 0.0005151514082207276, 0.00020754153397270386, 0.00019496556555430788, 0.00018649491853562605, 0.00018035035157652074, 0.00017577144272992457, 0.00017230502334019375, 0.0001695583616715786, 0.00016581696015361054, 0.0001658425548757143, 0.00016953621432266587, 0.00017225830926004255, 0.0001756711001277454, 0.00018034685450688003, 0.0001865474275139266, 0.0001950191149531686, 0.00020771958063042003, 0.0005144920432151595, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }