import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], } 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, 2.015694244604316, 12.396922661870514, 14.051917266187044, 15.352881294964032, 16.417499999999993, 17.308122302158278, 18.011043165467626, 18.59336330935252, 19.484928057553933, 19.490899280575565, 18.591582733812952, 18.006780575539565, 17.293115107913675, 16.418701438848913, 15.349697841726622, 14.061881294964023, 12.400983812949653, 2.0135251798561145, 0.0], '_alpha2.yoda' : [0.0, 2.01333, 12.40537, 14.0602, 15.35078, 16.41651, 17.30323, 18.01311, 18.58891, 19.48743, 19.49039, 18.5927, 18.01197, 17.30285, 16.41488, 15.34201, 14.06164, 12.39806, 2.012415, 0.0], } xerrs = { 'alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha2.yoda' : [ [0.0, 0.1703677592341657, 1.0477409887684905, 1.1876128218342732, 1.2975657068623045, 1.3875440599104012, 1.4628143549924544, 1.5222211316171317, 1.5714371625887598, 1.6467865941406832, 1.6472922316940495, 1.5712886339306054, 1.5218584456906776, 1.4615464699933791, 1.3876445365681733, 1.297298305811016, 1.18845553957047, 1.048084408570334, 0.17018352086734073, 0.0], [0.0, 0.1703677592341657, 1.0477409887684905, 1.1876128218342732, 1.2975657068623045, 1.3875440599104012, 1.4628143549924544, 1.5222211316171317, 1.5714371625887598, 1.6467865941406832, 1.6472922316940495, 1.5712886339306054, 1.5218584456906776, 1.4615464699933791, 1.3876445365681733, 1.297298305811016, 1.18845553957047, 1.048084408570334, 0.17018352086734073, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001037395, 0.002575085, 0.002741463, 0.00286452, 0.002962287, 0.003041237, 0.003102995, 0.003152199, 0.003227483, 0.003227728, 0.00315252, 0.003102896, 0.003041204, 0.002962139, 0.002863702, 0.002741604, 0.002574326, 0.001037159, 0.0], [0.0, 0.001037395, 0.002575085, 0.002741463, 0.00286452, 0.002962287, 0.003041237, 0.003102995, 0.003152199, 0.003227483, 0.003227728, 0.00315252, 0.003102896, 0.003041204, 0.002962139, 0.002863702, 0.002741604, 0.002574326, 0.001037159, 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.9988270817309497, 1.0006814060521219, 1.0005894379860096, 0.9998631335106641, 0.9999396984924627, 0.9997173406755008, 1.0001147537382142, 0.9997604893058654, 1.0001284039868497, 0.999973870852841, 1.0000600952701577, 1.0002881927970781, 1.0005629345566474, 0.9997672508472643, 0.9994991535464807, 0.9999828404920394, 0.9997642273392374, 0.9994486387023013, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08452063585050776, 0.08451621562430574, 0.08451606989545914, 0.08451610365071506, 0.08451616018945649, 0.08451606300528887, 0.08451598930902955, 0.08451602523134273, 0.08451591862574291, 0.0845159686057033, 0.08451613057520194, 0.08451585441974964, 0.08451608983534414, 0.08451609536457097, 0.08451621127579723, 0.08451611236371986, 0.08451623067807558, 0.08452018508132189, 1.0], [1.0, 0.08452063585050776, 0.08451621562430574, 0.08451606989545914, 0.08451610365071506, 0.08451616018945649, 0.08451606300528887, 0.08451598930902955, 0.08451602523134273, 0.08451591862574291, 0.0845159686057033, 0.08451613057520194, 0.08451585441974964, 0.08451608983534414, 0.08451609536457097, 0.08451621127579723, 0.08451611236371986, 0.08451623067807558, 0.08452018508132189, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0005146589086003182, 0.00020771969546283007, 0.00019509529895943444, 0.00018657865875245218, 0.0001804347190497945, 0.00017571155015589217, 0.00017228291395966102, 0.00016953355600890315, 0.00016563997518834908, 0.00016560179977004558, 0.0001695670586596394, 0.00017231819907968324, 0.00017586212669158053, 0.00018041250162398168, 0.00018656406331434824, 0.00019496708459499298, 0.00020759046530741986, 0.0005150961161926542, 1.0], [1.0, 0.0005146589086003182, 0.00020771969546283007, 0.00019509529895943444, 0.00018657865875245218, 0.0001804347190497945, 0.00017571155015589217, 0.00017228291395966102, 0.00016953355600890315, 0.00016563997518834908, 0.00016560179977004558, 0.0001695670586596394, 0.00017231819907968324, 0.00017586212669158053, 0.00018041250162398168, 0.00018656406331434824, 0.00019496708459499298, 0.00020759046530741986, 0.0005150961161926542, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }