import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 503.64741666666623, 1394.4366666666667, 1239.2033333333334, 1105.2241666666669, 992.4216666666666, 901.5758333333333, 831.9591666666666, 784.6146666666667, 758.5743333333334, 754.2641666666667, 771.33575, 810.23575, 870.505, 952.6725, 1056.1666666666667, 1180.5833333333333, 1328.0241666666666, 479.1477499999996, 0.0], '_alpha3.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 = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 42.56687548891609, 117.85216139063571, 104.73262916164718, 93.40941839260346, 83.87561061211748, 76.19763684728754, 70.31392405965312, 66.31265904787713, 64.11176222469288, 63.747559866154006, 65.19033564195779, 68.47794657162747, 73.57162043433144, 80.51617763599506, 89.2630709382852, 99.77846989985142, 112.23932762925241, 40.496210385115695, 0.0], [0.0, 42.56687548891609, 117.85216139063571, 104.73262916164718, 93.40941839260346, 83.87561061211748, 76.19763684728754, 70.31392405965312, 66.31265904787713, 64.11176222469288, 63.747559866154006, 65.19033564195779, 68.47794657162747, 73.57162043433144, 80.51617763599506, 89.2630709382852, 99.77846989985142, 112.23932762925241, 40.496210385115695, 0.0], ], '_alpha3.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 = { 'alpha3.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], '_alpha3.yoda' : [1.0, 0.999232962080451, 1.0003121929763752, 0.9999367873445574, 0.9998496534262655, 1.000282977833683, 1.0000099455490432, 1.0006084833891087, 1.0003854546010695, 1.0003370357464418, 1.000485285327753, 1.000189087566601, 0.9994913208902471, 0.9997581863401129, 0.9997644521070986, 0.999612119299353, 1.0002631467494882, 0.999763433019856, 0.9990390229318628, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.0845172120024762, 0.08451596562815261, 0.08451609703141037, 0.0845162648536037, 0.08451610180361925, 0.08451605958155216, 0.08451607588071104, 0.08451621141572313, 0.08451612374356574, 0.08451622479677744, 0.08451615997567569, 0.08451607642791306, 0.08451602280783159, 0.08451611402238972, 0.08451608420857049, 0.0845162447094104, 0.08451602798085558, 0.08451716695970236, 1.0], [1.0, 0.0845172120024762, 0.08451596562815261, 0.08451609703141037, 0.0845162648536037, 0.08451610180361925, 0.08451605958155216, 0.08451607588071104, 0.08451621141572313, 0.08451612374356574, 0.08451622479677744, 0.08451615997567569, 0.08451607642791306, 0.08451602280783159, 0.08451611402238972, 0.08451608420857049, 0.0845162447094104, 0.08451602798085558, 0.08451716695970236, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00025753274157235353, 0.00015485687171163504, 0.00016423930966400456, 0.00017390191582552256, 0.00018355897106908523, 0.00019255873281134606, 0.00020051332647535785, 0.00020645127714495948, 0.0002099599116412674, 0.00021057450031321915, 0.0002082003848518625, 0.00020307015581576103, 0.0001959404024100953, 0.00018730067258160594, 0.00017787372573773078, 0.00016829493894261313, 0.00015863822759249488, 0.0002640089617450987, 1.0], [1.0, 0.00025753274157235353, 0.00015485687171163504, 0.00016423930966400456, 0.00017390191582552256, 0.00018355897106908523, 0.00019255873281134606, 0.00020051332647535785, 0.00020645127714495948, 0.0002099599116412674, 0.00021057450031321915, 0.0002082003848518625, 0.00020307015581576103, 0.0001959404024100953, 0.00018730067258160594, 0.00017787372573773078, 0.00016829493894261313, 0.00015863822759249488, 0.0002640089617450987, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }