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, 479.2103333333329, 1328.2708333333335, 1180.78, 1056.3375, 952.7625, 870.5691666666667, 810.432, 771.5373333333333, 754.4433333333333, 758.5313333333334, 784.75725, 832.1271666666667, 901.8341666666668, 992.5683333333334, 1105.2983333333332, 1239.3991666666668, 1394.6525000000001, 503.6938333333329, 0.0], '_alpha1.yoda' : [0.0, 478.747, 1327.972, 1181.088, 1055.903, 952.6083, 870.4842, 809.9752, 771.6096, 754.7323, 758.9667, 785.1072, 832.6299, 901.7052, 992.9632, 1105.235, 1239.377, 1395.107, 503.3501, 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, 40.50149174207452, 112.2602383353568, 99.79506779172786, 89.27750120955572, 80.52376719536497, 73.57707598913613, 68.49452025932847, 65.20737219738953, 63.76268392336627, 64.10816597317728, 66.3246958363005, 70.32813468148989, 76.21951120867209, 83.88802887712221, 93.41562592343246, 104.74913815609388, 117.87039728258982, 42.570823341814716, 0.0], [0.0, 40.50149174207452, 112.2602383353568, 99.79506779172786, 89.27750120955572, 80.52376719536497, 73.57707598913613, 68.49452025932847, 65.20737219738953, 63.76268392336627, 64.10816597317728, 66.3246958363005, 70.32813468148989, 76.21951120867209, 83.88802887712221, 93.41562592343246, 104.74913815609388, 117.87039728258982, 42.570823341814716, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.1265186, 0.2107152, 0.1987205, 0.1878943, 0.1784673, 0.1706011, 0.1645649, 0.1606202, 0.1588539, 0.1592989, 0.162019, 0.1668505, 0.1736336, 0.1822082, 0.1922333, 0.2035651, 0.2159759, 0.1297288, 0.0], [0.0, 0.1265186, 0.2107152, 0.1987205, 0.1878943, 0.1784673, 0.1706011, 0.1645649, 0.1606202, 0.1588539, 0.1592989, 0.162019, 0.1668505, 0.1736336, 0.1822082, 0.1922333, 0.2035651, 0.2159759, 0.1297288, 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, 0.9990331315894004, 0.9997750207820316, 1.0002608445264993, 0.9995886731276699, 0.9998381548392175, 0.9999024010154276, 0.9994363499960515, 1.0000936658066233, 1.0003830197098966, 1.0005739600297767, 1.0004459340770666, 1.0006041544531556, 0.9998569951423071, 1.0003978231557524, 0.9999427002362862, 0.9999821149898571, 1.0003258876315066, 0.999317574862773, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451715024663746, 0.08451607572654181, 0.08451622469192217, 0.08451607673641778, 0.0845160962940554, 0.08451606007464788, 0.08451606089015298, 0.08451615933563318, 0.08451620036410899, 0.08451617376365549, 0.08451619381190872, 0.08451609020675312, 0.084516105095455, 0.0845161245426819, 0.08451620988309262, 0.08451606308386835, 0.08451596170557885, 0.08451726132934871, 1.0], [1.0, 0.08451715024663746, 0.08451607572654181, 0.08451622469192217, 0.08451607673641778, 0.0845160962940554, 0.08451606007464788, 0.08451606089015298, 0.08451615933563318, 0.08451620036410899, 0.08451617376365549, 0.08451619381190872, 0.08451609020675312, 0.084516105095455, 0.0845161245426819, 0.08451620988309262, 0.08451606308386835, 0.08451596170557885, 0.08451726132934871, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0002640147576116544, 0.00015863873143341122, 0.00016829595690983926, 0.00017787335960334645, 0.0001873156216790648, 0.0001959650152247141, 0.0002030582454789544, 0.00020818201927580085, 0.00021055776223529048, 0.0002100096502275889, 0.00020645747458847942, 0.0002005108193599416, 0.00019253384537622862, 0.00018357244925202462, 0.00017391983159901025, 0.00016424498698630182, 0.0001548600099307892, 0.00025755487046860167, 1.0], [1.0, 0.0002640147576116544, 0.00015863873143341122, 0.00016829595690983926, 0.00017787335960334645, 0.0001873156216790648, 0.0001959650152247141, 0.0002030582454789544, 0.00020818201927580085, 0.00021055776223529048, 0.0002100096502275889, 0.00020645747458847942, 0.0002005108193599416, 0.00019253384537622862, 0.00018357244925202462, 0.00017391983159901025, 0.00016424498698630182, 0.0001548600099307892, 0.00025755487046860167, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }