import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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, 479.1195833333329, 1328.01, 1180.5766666666666, 1056.1491666666666, 952.5691666666668, 870.4275, 810.2794166666667, 771.3663333333333, 754.3140833333334, 758.4222500000001, 784.5946666666666, 831.9826666666667, 901.6808333333333, 992.3708333333334, 1105.0908333333332, 1239.1816666666666, 1394.4191666666666, 503.58833333333286, 0.0], '_alpha2.yoda' : [0.0, 478.6621, 1327.738, 1180.88, 1055.718, 952.4307, 870.3331, 809.8276, 771.4713, 754.5911, 758.8342, 784.9686, 832.4686, 901.5348, 992.7882, 1105.041, 1239.137, 1394.86, 503.2563, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 40.493818115306844, 112.23818299590485, 99.77787830977366, 89.26155387399439, 80.50747894864593, 73.5650883383023, 68.4816378471063, 65.19291351229997, 63.75175923498548, 64.09895236620054, 66.31095204497603, 70.31591905267413, 76.20651765651894, 83.87126378497518, 93.39811739715813, 104.73077256576609, 117.85065879229431, 42.561891209547184, 0.0], [0.0, 40.493818115306844, 112.23818299590485, 99.77787830977366, 89.26155387399439, 80.50747894864593, 73.5650883383023, 68.4816378471063, 65.19291351229997, 63.75175923498548, 64.09895236620054, 66.31095204497603, 70.31591905267413, 76.20651765651894, 83.87126378497518, 93.39811739715813, 104.73077256576609, 117.85065879229431, 42.561891209547184, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.126496, 0.2106777, 0.198685, 0.1878608, 0.1784345, 0.1705709, 0.1645351, 0.1605913, 0.1588247, 0.1592706, 0.1619901, 0.1668193, 0.1736015, 0.1821757, 0.1921992, 0.2035269, 0.2159373, 0.129705, 0.0], [0.0, 0.126496, 0.2106777, 0.198685, 0.1878608, 0.1784345, 0.1705709, 0.1645351, 0.1605913, 0.1588247, 0.1592706, 0.1619901, 0.1668193, 0.1736015, 0.1821757, 0.1921992, 0.2035269, 0.2159373, 0.129705, 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, 0.9990451583503431, 0.9997951822651938, 1.0002569365818401, 0.9995917558993799, 0.9998546387270215, 0.9998915475441664, 0.9994423939972146, 1.0001360788799443, 1.000367243132254, 1.0005431670813982, 1.0004765942839275, 1.0005840666552348, 0.999838043210042, 1.0004205753057702, 0.9999549056676337, 0.999963954706668, 1.0003161411890136, 0.9993406651597049, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451714253377637, 0.08451606764700932, 0.0845162208664469, 0.08451604819773191, 0.08451615039185702, 0.0845160433675433, 0.08451607734135287, 0.08451615101035, 0.08451619907885692, 0.0845161812779102, 0.08451619015802984, 0.08451608653626694, 0.08451606692669592, 0.0845160508227101, 0.08451623575180454, 0.084516076522893, 0.08451594872581546, 0.08451723042871769, 1.0], [1.0, 0.08451714253377637, 0.08451606764700932, 0.0845162208664469, 0.08451604819773191, 0.08451615039185702, 0.0845160433675433, 0.08451607734135287, 0.08451615101035, 0.08451619907885692, 0.0845161812779102, 0.08451619015802984, 0.08451608653626694, 0.08451606692669592, 0.0845160508227101, 0.08451623575180454, 0.084516076522893, 0.08451594872581546, 0.08451723042871769, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0002640175947723561, 0.0001586416517947907, 0.0001682948728446268, 0.00017787335911357218, 0.00018731920604190595, 0.0001959622139695724, 0.00020305970584426995, 0.00020819070402778792, 0.00021055513016295487, 0.00021000254146024856, 0.00020646342230213138, 0.0002005081435991455, 0.00019253098611204814, 0.00018357623368280506, 0.00017392163087649658, 0.00016424298831621407, 0.00015485824145417776, 0.00025756156649114876, 1.0], [1.0, 0.0002640175947723561, 0.0001586416517947907, 0.0001682948728446268, 0.00017787335911357218, 0.00018731920604190595, 0.0001959622139695724, 0.00020305970584426995, 0.00020819070402778792, 0.00021055513016295487, 0.00021000254146024856, 0.00020646342230213138, 0.0002005081435991455, 0.00019253098611204814, 0.00018357623368280506, 0.00017392163087649658, 0.00016424298831621407, 0.00015485824145417776, 0.00025756156649114876, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }