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.39615243902439023, 0.5608432926829268, 0.6364911585365854, 0.717507926829268, 0.8228713414634152, 0.9556201219512193, 1.1389615853658532, 1.4013652439024402, 1.773840853658536, 2.3516746951219503, 3.309124999999999, 5.182704268292681, 10.511329268292702, 423.3201219512194, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.395552, 0.5623594, 0.6383144, 0.7187947, 0.8188232, 0.953637, 1.139504, 1.395362, 1.771189, 2.346965, 3.302823, 5.181002, 10.5038, 423.3608, 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.03350072916890474, 0.04741854454792371, 0.05381082878443315, 0.060663768138184235, 0.06956543478934138, 0.08078240270537303, 0.09628131805817587, 0.11845859938389977, 0.14993619131613634, 0.19877347361558684, 0.27969012701118207, 0.4380375086821817, 0.8883859140443751, 35.777072051699584, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.03350072916890474, 0.04741854454792371, 0.05381082878443315, 0.060663768138184235, 0.06956543478934138, 0.08078240270537303, 0.09628131805817587, 0.11845859938389977, 0.14993619131613634, 0.19877347361558684, 0.27969012701118207, 0.4380375086821817, 0.8883859140443751, 35.777072051699584, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.000598699, 0.0007138611, 0.0007605434, 0.0008070662, 0.0008613939, 0.0009296046, 0.001016166, 0.001124476, 0.001266891, 0.001458344, 0.001730013, 0.002166774, 0.003085176, 0.01958673, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.000598699, 0.0007138611, 0.0007605434, 0.0008070662, 0.0008613939, 0.0009296046, 0.001016166, 0.001124476, 0.001266891, 0.001458344, 0.001730013, 0.002166774, 0.003085176, 0.01958673, 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, 0.9984843232926474, 1.0027032637045912, 1.0028645197014308, 1.001793392271523, 0.9950804685259594, 0.9979247800400329, 1.000476236109379, 0.9957161461449389, 0.9985050216579088, 0.9979973016116049, 0.9980955690703739, 0.9996715482488371, 0.9992836997014818, 1.0000960928778748, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0845652477904905, 0.08454865230015655, 0.08454293207804253, 0.08454787169566597, 0.08453986824431685, 0.0845340118418903, 0.08453429799148908, 0.08453085296594282, 0.08452629276572013, 0.08452422183557114, 0.08452087092847267, 0.08451910161304318, 0.08451699032244955, 0.08451540618194922, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0845652477904905, 0.08454865230015655, 0.08454293207804253, 0.08454787169566597, 0.08453986824431685, 0.0845340118418903, 0.08453429799148908, 0.08453085296594282, 0.08452629276572013, 0.08452422183557114, 0.08452087092847267, 0.08451910161304318, 0.08451699032244955, 0.08451540618194922, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0015112843971740368, 0.0012728352274395157, 0.0011949001801511811, 0.001124818513945202, 0.0010468148015315192, 0.000972776293263792, 0.0008921863678778866, 0.0008024146487810878, 0.0007142078148595152, 0.0006201299878018949, 0.000522800740376988, 0.000418077877461797, 0.0002935095953378985, 4.6269310113864716e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0015112843971740368, 0.0012728352274395157, 0.0011949001801511811, 0.001124818513945202, 0.0010468148015315192, 0.000972776293263792, 0.0008921863678778866, 0.0008024146487810878, 0.0007142078148595152, 0.0006201299878018949, 0.000522800740376988, 0.000418077877461797, 0.0002935095953378985, 4.6269310113864716e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }