import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 378.362833333333, 1006.9316666666667, 892.9416666666667, 797.1285833333334, 717.43425, 653.7187500000001, 605.54175, 573.9060833333333, 557.469, 557.7815833333334, 573.5163333333334, 605.3383333333334, 652.47875, 716.45825, 796.0790000000001, 891.9258333333333, 1006.4258333333335, 378.50049999999965, 0.0], '_alpha1.yoda' : [0.0, 378.6094, 1007.102, 893.2986, 797.0265, 717.3939, 653.3083, 605.5938, 573.7149, 557.6295, 557.5885, 573.5199, 605.2595, 652.5366, 716.4075, 796.1927, 892.2625, 1006.22, 378.593, 0.0], } xerrs = { 'alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 31.978030653003675, 85.10169570056235, 75.46776813831039, 67.37009619342332, 60.63465845171024, 55.24978632437314, 51.17822887821648, 48.504445672536036, 47.11529151394953, 47.14160847913444, 48.47145494457995, 51.160972810228, 55.145010855219006, 60.55219855628695, 67.28156012856223, 75.3819855801106, 85.05900729624243, 31.989625054243902, 0.0], [0.0, 31.978030653003675, 85.10169570056235, 75.46776813831039, 67.37009619342332, 60.63465845171024, 55.24978632437314, 51.17822887821648, 48.504445672536036, 47.11529151394953, 47.14160847913444, 48.47145494457995, 51.160972810228, 55.145010855219006, 60.55219855628695, 67.28156012856223, 75.3819855801106, 85.05900729624243, 31.989625054243902, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.09675191, 0.1577977, 0.1486149, 0.1403784, 0.1331811, 0.1270934, 0.1223643, 0.1191, 0.1174186, 0.1174142, 0.1190798, 0.1223305, 0.1270183, 0.1330896, 0.1403049, 0.1485286, 0.1577286, 0.09674983, 0.0], [0.0, 0.09675191, 0.1577977, 0.1486149, 0.1403784, 0.1331811, 0.1270934, 0.1223643, 0.1191, 0.1174186, 0.1174142, 0.1190798, 0.1223305, 0.1270183, 0.1330896, 0.1403049, 0.1485286, 0.1577286, 0.09674983, 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.0006516672488541, 1.0001691607672814, 1.0003997274924639, 0.9998719361775907, 0.9999437579123105, 0.9993721305989769, 1.0000859560880815, 0.9996668734852523, 1.000287908385937, 0.9996538370231237, 1.000006218945232, 0.9998697697981569, 1.0000886618912876, 0.9999291654468352, 1.0001428250211346, 1.0003774603830102, 0.9997954808724934, 1.000244385410324, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451683895926274, 0.08451585993147069, 0.08451589947642386, 0.08451597095126537, 0.08451597962002823, 0.08451614142071515, 0.08451643322399567, 0.08451634697930867, 0.08451643322579287, 0.08451625132083708, 0.08451625895789068, 0.08451632747013874, 0.08451617904064923, 0.08451601828339188, 0.08451618511298782, 0.0845159796508984, 0.08451592206702671, 0.08451673129690432, 1.0], [1.0, 0.08451683895926274, 0.08451585993147069, 0.08451589947642386, 0.08451597095126537, 0.08451597962002823, 0.08451614142071515, 0.08451643322399567, 0.08451634697930867, 0.08451643322579287, 0.08451625132083708, 0.08451625895789068, 0.08451632747013874, 0.08451617904064923, 0.08451601828339188, 0.08451618511298782, 0.0845159796508984, 0.08451592206702671, 0.08451673129690432, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00025571198192916254, 0.00015671142861399068, 0.00016643293234907094, 0.0001761050888590433, 0.00018563526901594116, 0.00019441602371050238, 0.00020207409315707795, 0.00020752524404036492, 0.00021062803492212121, 0.0002105021096220608, 0.00020763105264656802, 0.00020208616118258933, 0.00019467040114333226, 0.00018576044033270604, 0.00017624494553932461, 0.00016652572943751863, 0.00015672153354569096, 0.00025561348003503323, 1.0], [1.0, 0.00025571198192916254, 0.00015671142861399068, 0.00016643293234907094, 0.0001761050888590433, 0.00018563526901594116, 0.00019441602371050238, 0.00020207409315707795, 0.00020752524404036492, 0.00021062803492212121, 0.0002105021096220608, 0.00020763105264656802, 0.00020208616118258933, 0.00019467040114333226, 0.00018576044033270604, 0.00017624494553932461, 0.00016652572943751863, 0.00015672153354569096, 0.00025561348003503323, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }