import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['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, 0.0, 0.0, 0.28619692073170727, 0.4822573170731707, 0.599823780487805, 0.7204027439024387, 0.8647496951219519, 1.0517850609756094, 1.3006280487804875, 1.6395262195121965, 2.1338259146341456, 2.865938719512194, 4.079496951219511, 6.396679878048778, 12.362198170731729, 576.8216463414632, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.2874177, 0.4836639, 0.5978848, 0.7173669, 0.865294, 1.052718, 1.303127, 1.643287, 2.128031, 2.861798, 4.08249, 6.397686, 12.35252, 576.8448, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.024207009889308566, 0.04078303187084338, 0.05071406016357631, 0.06090498196191409, 0.0731007477820431, 0.08890931315221864, 0.10994161996584302, 0.13858332231861875, 0.1803633645254454, 0.24223582650482292, 0.3448033250801355, 0.5406356113111005, 1.0448180072874775, 48.75032413443393, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.024207009889308566, 0.04078303187084338, 0.05071406016357631, 0.06090498196191409, 0.0731007477820431, 0.08890931315221864, 0.10994161996584302, 0.13858332231861875, 0.1803633645254454, 0.24223582650482292, 0.3448033250801355, 0.5406356113111005, 1.0448180072874775, 48.75032413443393, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.0005929416, 0.0007691783, 0.0008551926, 0.0009367546, 0.001028814, 0.001134779, 0.00126255, 0.00141779, 0.001613408, 0.001871004, 0.002234692, 0.002797478, 0.003887165, 0.02656346, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005929416, 0.0007691783, 0.0008551926, 0.0009367546, 0.001028814, 0.001134779, 0.00126255, 0.00141779, 0.001613408, 0.001871004, 0.002234692, 0.002797478, 0.003887165, 0.02656346, 0.0, 0.0, 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, 1.0, 1.0, 1.004265522022989, 1.002916664770098, 0.9967674164464967, 0.995785907357885, 1.0006294363341421, 1.0008870053958794, 1.0019213419408073, 1.0022938214973607, 0.9972842608225896, 0.9985551960744998, 1.0007336808474865, 1.0001572881511038, 0.9992171157104857, 1.000040140065276, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08458165736870807, 0.08456695300831601, 0.08454826536275911, 0.0845429622213685, 0.08453399659393233, 0.08453182732006917, 0.084529639406845, 0.08452644469440145, 0.08452581032430172, 0.08452233289414277, 0.08452104002113818, 0.08451815967317317, 0.08451717023604662, 0.08451542074337312, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08458165736870807, 0.08456695300831601, 0.08454826536275911, 0.0845429622213685, 0.08453399659393233, 0.08453182732006917, 0.084529639406845, 0.08452644469440145, 0.08452581032430172, 0.08452233289414277, 0.08452104002113818, 0.08451815967317317, 0.08451717023604662, 0.08451542074337312, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.0020717958756650908, 0.0015949541308531274, 0.001425739738602089, 0.0013003206996763756, 0.0011897246171967842, 0.0010789076990192345, 0.0009707233372245118, 0.0008647559173660736, 0.0007561104160067464, 0.0006528415933186666, 0.0005477861674420344, 0.00043733281222966766, 0.0003144396284799175, 4.605142710659498e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0020717958756650908, 0.0015949541308531274, 0.001425739738602089, 0.0013003206996763756, 0.0011897246171967842, 0.0010789076990192345, 0.0009707233372245118, 0.0008647559173660736, 0.0007561104160067464, 0.0006528415933186666, 0.0005477861674420344, 0.00043733281222966766, 0.0003144396284799175, 4.605142710659498e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }