import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 3.714850719424459, 20.09557553956836, 18.729910071942438, 17.120814748201443, 15.667458633093519, 14.478404676258997, 13.621562949640285, 13.119512589928059, 13.132035971223006, 13.110951438848938, 13.08898381294964, 13.574030575539567, 14.429384892086334, 15.607107913669058, 17.06109532374101, 18.69697841726618, 20.151906474820162, 3.7795521582733795, 0.0], '_alpha0.yoda' : [0.0, 3.717696, 20.08796, 18.74603, 17.11533, 15.66661, 14.48355, 13.61183, 13.11264, 13.12957, 13.11818, 13.08671, 13.57205, 14.4297, 15.60788, 17.05885, 18.70029, 20.154, 3.782263, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.3139726828191397, 1.6983973987048315, 1.5829772131352746, 1.4469855370934903, 1.3241512403902926, 1.2236599053649357, 1.1512433841900342, 1.1088122932309143, 1.109870066780962, 1.108087380103213, 1.1062317888975886, 1.1472278478575428, 1.2195154461928412, 1.3190515544362547, 1.441934304352105, 1.5801938620578209, 1.7031550769036317, 0.3194438024800478, 0.0], [0.0, 0.3139726828191397, 1.6983973987048315, 1.5829772131352746, 1.4469855370934903, 1.3241512403902926, 1.2236599053649357, 1.1512433841900342, 1.1088122932309143, 1.109870066780962, 1.108087380103213, 1.1062317888975886, 1.1472278478575428, 1.2195154461928412, 1.3190515544362547, 1.441934304352105, 1.5801938620578209, 1.7031550769036317, 0.3194438024800478, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001388205, 0.003226894, 0.003117248, 0.002978581, 0.002849734, 0.002740023, 0.002656287, 0.002607125, 0.002608807, 0.002607676, 0.002604546, 0.002652403, 0.002734924, 0.002844387, 0.002973662, 0.003113442, 0.003232193, 0.001400208, 0.0], [0.0, 0.001388205, 0.003226894, 0.003117248, 0.002978581, 0.002849734, 0.002740023, 0.002656287, 0.002607125, 0.002608807, 0.002607676, 0.002604546, 0.002652403, 0.002734924, 0.002844387, 0.002973662, 0.003113442, 0.003232193, 0.001400208, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 1.0007659205686688, 0.9996210340155042, 1.0008606516526586, 0.9996796444397006, 0.9999458346683152, 1.0003553791910127, 0.9992854748257399, 0.9994761550872451, 0.9998122171437536, 1.000551337649657, 0.9998262804063223, 0.9998540908296513, 1.00002183793114, 1.0000494701731553, 0.9998683951001736, 1.0001771186049377, 1.0001038872020598, 1.000717238871988, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451825026976681, 0.08451598688281768, 0.08451600712736938, 0.08451616108079771, 0.08451601956639988, 0.08451621105545111, 0.08451624739732498, 0.08451627189886286, 0.08451622194860606, 0.08451616843151821, 0.08451624699872679, 0.08451637422453209, 0.0845161076035662, 0.08451607829795292, 0.0845159280216676, 0.08451600182618559, 0.08451582876447579, 0.08451895597757274, 1.0], [1.0, 0.08451825026976681, 0.08451598688281768, 0.08451600712736938, 0.08451616108079771, 0.08451601956639988, 0.08451621105545111, 0.08451624739732498, 0.08451627189886286, 0.08451622194860606, 0.08451616843151821, 0.08451624699872679, 0.08451637422453209, 0.0845161076035662, 0.08451607829795292, 0.0845159280216676, 0.08451600182618559, 0.08451582876447579, 0.08451895597757274, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0003736906553852248, 0.00016057733672002666, 0.00016643155188821027, 0.00017397425553669418, 0.00018188872022809508, 0.000189248958104684, 0.00019500603637192355, 0.000198721178254862, 0.0001986597512919421, 0.00019889296456954448, 0.0001989876400812095, 0.00019540275714271897, 0.00018953850219214434, 0.00018224946067738927, 0.00017429490566540958, 0.0001665211314104538, 0.00016039142520032185, 0.00037046928878464264, 1.0], [1.0, 0.0003736906553852248, 0.00016057733672002666, 0.00016643155188821027, 0.00017397425553669418, 0.00018188872022809508, 0.000189248958104684, 0.00019500603637192355, 0.000198721178254862, 0.0001986597512919421, 0.00019889296456954448, 0.0001989876400812095, 0.00019540275714271897, 0.00018953850219214434, 0.00018224946067738927, 0.00017429490566540958, 0.0001665211314104538, 0.00016039142520032185, 0.00037046928878464264, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }