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.3928353658536585, 0.5522978658536585, 0.6280847560975611, 0.7101978658536583, 0.8154027439024396, 0.9487445121951217, 1.1327521341463411, 1.3951128048780497, 1.7676390243902433, 2.3453847560975603, 3.3023597560975597, 5.176765243902437, 10.506862804878068, 423.36310975609746, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.3918313, 0.5539256, 0.6299815, 0.7110753, 0.8118114, 0.9469385, 1.133086, 1.388939, 1.765059, 2.340645, 3.296449, 5.175016, 10.49927, 423.4041, 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.033221314664935025, 0.04669605194342359, 0.05309970922304268, 0.06004610903044932, 0.06893405949382815, 0.0802023242326187, 0.0957567885040862, 0.11793008451380207, 0.14941198821343527, 0.19824175556530288, 0.27911787673601773, 0.4375354791426927, 0.8880083859490109, 35.78070913692827, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.033221314664935025, 0.04669605194342359, 0.05309970922304268, 0.06004610903044932, 0.06893405949382815, 0.0802023242326187, 0.0957567885040862, 0.11793008451380207, 0.14941198821343527, 0.19824175556530288, 0.27911787673601773, 0.4375354791426927, 0.8880083859490109, 35.78070913692827, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0005958497, 0.000708456, 0.0007555288, 0.0008026846, 0.0008576592, 0.0009262923, 0.001013255, 0.001121835, 0.00126464, 0.001456314, 0.001728265, 0.002165424, 0.003084371, 0.01958685, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005958497, 0.000708456, 0.0007555288, 0.0008026846, 0.0008576592, 0.0009262923, 0.001013255, 0.001121835, 0.00126464, 0.001456314, 0.001728265, 0.002165424, 0.003084371, 0.01958685, 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, 0.9974440543267366, 1.0029472033968947, 1.0030198852687078, 1.001235478432883, 0.9955956195520611, 0.9980964188230791, 1.000294738666646, 0.9955746912676431, 0.9985404121799509, 0.9979791136250724, 0.9982101416762222, 0.9996620971166313, 0.9992773480515474, 1.0000968205376377, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.08456803422660993, 0.08454867351559996, 0.08454226711847572, 0.0845484222319844, 0.08453989149449796, 0.08453521807156872, 0.08453463526356535, 0.08453085951290558, 0.08452630098782513, 0.08452419375964286, 0.08452073588307497, 0.08451908837435755, 0.08451698689134222, 0.08451541552012361, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08456803422660993, 0.08454867351559996, 0.08454226711847572, 0.0845484222319844, 0.08453989149449796, 0.08453521807156872, 0.08453463526356535, 0.08453085951290558, 0.08452630098782513, 0.08452419375964286, 0.08452073588307497, 0.08451908837435755, 0.08451698689134222, 0.08451541552012361, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.0015167924066744277, 0.0012827425992403137, 0.00120290899065005, 0.0011302267136992486, 0.0010518228034104044, 0.0009763348173227651, 0.0008945072531367192, 0.0008041177717511255, 0.0007154401903048302, 0.0006209275455610671, 0.0005233424362106183, 0.00041829673511863233, 0.0002935577495661222, 4.626489542578267e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0015167924066744277, 0.0012827425992403137, 0.00120290899065005, 0.0011302267136992486, 0.0010518228034104044, 0.0009763348173227651, 0.0008945072531367192, 0.0008041177717511255, 0.0007154401903048302, 0.0006209275455610671, 0.0005233424362106183, 0.00041829673511863233, 0.0002935577495661222, 4.626489542578267e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }