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, 503.7318333333329, 1394.64, 1239.3933333333334, 1105.381666666667, 992.5791666666667, 901.7158333333334, 832.0870000000001, 784.7381666666668, 758.6981666666667, 754.3626666666668, 771.49175, 810.3634166666667, 870.6225000000001, 952.8333333333334, 1056.3333333333335, 1180.7633333333333, 1328.2491666666667, 479.22141666666624, 0.0], '_alpha1.yoda' : [0.0, 503.3542, 1395.118, 1239.359, 1105.259, 992.888, 901.7524, 832.6199, 785.0569, 758.9619, 754.7767, 771.6186, 809.965, 870.4573, 952.62, 1055.936, 1181.101, 1327.94, 478.7762, 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, 42.57402050807768, 117.86930733278749, 104.74867408336118, 93.42268788207237, 83.88893947754177, 76.2094701026935, 70.32472301165976, 66.32309384956177, 64.12222486955847, 63.755887527697745, 65.20352751193758, 68.48873589463048, 73.58155433863088, 80.52973484648044, 89.27715117667131, 99.79367604100862, 112.25841344366528, 40.50242619618947, 0.0], [0.0, 42.57402050807768, 117.86930733278749, 104.74867408336118, 93.42268788207237, 83.88893947754177, 76.2094701026935, 70.32472301165976, 66.32309384956177, 64.12222486955847, 63.755887527697745, 65.20352751193758, 68.48873589463048, 73.58155433863088, 80.52973484648044, 89.27715117667131, 99.79367604100862, 112.25841344366528, 40.50242619618947, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.1297294, 0.2159767, 0.2035636, 0.1922355, 0.1822014, 0.1736381, 0.1668495, 0.1620138, 0.1592984, 0.1588586, 0.1606212, 0.1645639, 0.1705985, 0.1784684, 0.1878972, 0.1987216, 0.2107127, 0.1265225, 0.0], [0.0, 0.1297294, 0.2159767, 0.2035636, 0.1922355, 0.1822014, 0.1736381, 0.1668495, 0.1620138, 0.1592984, 0.1588586, 0.1606212, 0.1645639, 0.1705985, 0.1784684, 0.1878972, 0.1987216, 0.2107127, 0.1265225, 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.9992503286305454, 1.0003427407789822, 0.9999722982749624, 0.9998890277717046, 1.000311142268249, 1.0000405523173874, 1.0006404378388316, 1.0004061651986256, 1.0003476129835558, 1.0005488518343078, 1.0001644217193508, 0.9995083481577864, 0.9998102507114163, 0.999776106349484, 0.9996238561060269, 1.000285973198129, 0.9997672374472912, 0.9990709583270234, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451723256470335, 0.08451593768484159, 0.08451608643209407, 0.08451622701848593, 0.08451611951443849, 0.08451606069838354, 0.08451606984805644, 0.08451620765596563, 0.0845161194355838, 0.08451622852628497, 0.0845161695014076, 0.08451607573346627, 0.08451602656562503, 0.08451607645248953, 0.08451607874093212, 0.08451623896491418, 0.08451608046206086, 0.08451714549385819, 1.0], [1.0, 0.08451723256470335, 0.08451593768484159, 0.08451608643209407, 0.08451622701848593, 0.08451611951443849, 0.08451606069838354, 0.08451606984805644, 0.08451620765596563, 0.0845161194355838, 0.08451622852628497, 0.0845161695014076, 0.08451607573346627, 0.08451602656562503, 0.08451607645248953, 0.08451607874093212, 0.08451623896491418, 0.08451608046206086, 0.08451714549385819, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0002575366324211529, 0.00015486197154821314, 0.00016424454975283605, 0.00017390871026447876, 0.00018356359484340043, 0.0001925641023271374, 0.0002005192966600848, 0.0002064558688258865, 0.00020996281129803706, 0.00021058650834611818, 0.00020819561583127751, 0.0002030741968546828, 0.00019595002426424767, 0.00018730285114570579, 0.00017787680656358468, 0.00016829926403541211, 0.0001586394370032229, 0.0002640167897337646, 1.0], [1.0, 0.0002575366324211529, 0.00015486197154821314, 0.00016424454975283605, 0.00017390871026447876, 0.00018356359484340043, 0.0001925641023271374, 0.0002005192966600848, 0.0002064558688258865, 0.00020996281129803706, 0.00021058650834611818, 0.00020819561583127751, 0.0002030741968546828, 0.00019595002426424767, 0.00018730285114570579, 0.00017787680656358468, 0.00016829926403541211, 0.0001586394370032229, 0.0002640167897337646, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }