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, 503.6340833333329, 1394.4008333333334, 1239.17, 1105.1933333333334, 992.3950000000001, 901.5525, 831.9372500000001, 784.5939166666667, 758.5556666666666, 754.2451666666667, 771.31375, 810.2125, 870.4816666666668, 952.6466666666666, 1056.1383333333333, 1180.5516666666667, 1327.9875, 479.13358333333287, 0.0], '_alpha2.yoda' : [0.0, 503.2611, 1394.872, 1239.125, 1105.058, 992.7025, 901.5848, 832.4654, 784.9171, 758.83, 754.6302, 771.4816, 809.8236, 870.2945, 952.4481, 1055.757, 1180.894, 1327.71, 478.6873, 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, 42.565749794354055, 117.84912671151478, 104.72977794729104, 93.40677913775258, 83.87333373075802, 76.19566825687082, 70.31207222092092, 66.31089968222922, 64.11018618146592, 63.74595847755544, 65.18848206887813, 68.47598423291677, 73.56967124962418, 80.51398256755711, 89.2606980827633, 99.77575551650256, 112.23629587219597, 40.49500140620921, 0.0], [0.0, 42.565749794354055, 117.84912671151478, 104.72977794729104, 93.40677913775258, 83.87333373075802, 76.19566825687082, 70.31207222092092, 66.31089968222922, 64.11018618146592, 63.74595847755544, 65.18848206887813, 68.47598423291677, 73.56967124962418, 80.51398256755711, 89.2606980827633, 99.77575551650256, 112.23629587219597, 40.49500140620921, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.1297057, 0.2159381, 0.2035259, 0.1922006, 0.1821679, 0.1736063, 0.1668189, 0.1619847, 0.1592702, 0.1588288, 0.1605924, 0.1645347, 0.1705671, 0.1784362, 0.1878643, 0.1986862, 0.2106754, 0.1264993, 0.0], [0.0, 0.1297057, 0.2159381, 0.2035259, 0.1922006, 0.1821679, 0.1736063, 0.1668189, 0.1619847, 0.1592702, 0.1588288, 0.1605924, 0.1645347, 0.1705671, 0.1784362, 0.1878643, 0.1986862, 0.2106754, 0.1264993, 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.9992594160211233, 1.000337899013973, 0.999963685370046, 0.9998775478196876, 1.0003098564583657, 1.0000358270871634, 1.000634843553405, 1.0004119115971564, 1.0003616522100993, 1.0005104883005547, 1.0002176157238218, 0.9995200024684883, 0.9997849849412871, 0.9997915631538801, 0.9996389361873367, 1.0002899774258078, 0.9997910371897326, 0.9990685617772228, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451721438833139, 0.0845159611887171, 0.08451606958471479, 0.08451623468993591, 0.0845160785078099, 0.0845160634093642, 0.0845160764479784, 0.08451620420911482, 0.08451612584108209, 0.08451623065650683, 0.08451616747254684, 0.08451607971108416, 0.08451604906435804, 0.08451610170355967, 0.08451610481843126, 0.0845162124909139, 0.08451607855660989, 0.08451714264002419, 1.0], [1.0, 0.08451721438833139, 0.0845159611887171, 0.08451606958471479, 0.08451623468993591, 0.0845160785078099, 0.0845160634093642, 0.0845160764479784, 0.08451620420911482, 0.08451612584108209, 0.08451623065650683, 0.08451616747254684, 0.08451607971108416, 0.08451604906435804, 0.08451610170355967, 0.08451610481843126, 0.0845162124909139, 0.08451607855660989, 0.08451714264002419, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00025753955955787366, 0.00015486085122582517, 0.0001642437276564152, 0.00017390676744340357, 0.00018356390348601108, 0.0001925637164779644, 0.0002005186088253651, 0.00020645673712101813, 0.00020996507837042942, 0.00021057980484241306, 0.0002082063233022878, 0.000203075983152568, 0.0001959456546088468, 0.000187305751695277, 0.00017787849760842568, 0.00016829945322172825, 0.0001586426077052683, 0.00026401676776640086, 1.0], [1.0, 0.00025753955955787366, 0.00015486085122582517, 0.0001642437276564152, 0.00017390676744340357, 0.00018356390348601108, 0.0001925637164779644, 0.0002005186088253651, 0.00020645673712101813, 0.00020996507837042942, 0.00021057980484241306, 0.0002082063233022878, 0.000203075983152568, 0.0001959456546088468, 0.000187305751695277, 0.00017787849760842568, 0.00016829945322172825, 0.0001586426077052683, 0.00026401676776640086, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }