import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 2.91480215827338, 16.762850719424474, 19.037589928057546, 20.835719424460436, 22.369658273381287, 23.683597122302164, 24.775341726618702, 25.69634892086331, 26.67037769784169, 26.67122302158277, 25.7071582733813, 24.76593525179856, 23.672517985611517, 22.377625899280567, 20.849820143884898, 19.019406474820137, 16.769285971223034, 2.910312949640286, 0.0], '_alpha0.yoda' : [0.0, 2.91144, 16.767, 19.03279, 20.84211, 22.38938, 23.67868, 24.77154, 25.69193, 26.65792, 26.6642, 25.69462, 24.76954, 23.68547, 22.38444, 20.84144, 19.03197, 16.76473, 2.911541, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.2463596165352311, 1.41673039757356, 1.6089827936132088, 1.7609535789950275, 1.8905966315993832, 2.001645039262916, 2.093914522870387, 2.1717542115214408, 2.254073626037705, 2.2541425098097396, 2.1726670815602858, 2.093120309932363, 2.000709109061542, 1.8912672270281756, 1.762145829385439, 1.6074458544024643, 1.4172756591364455, 0.24597886639318206, 0.0], [0.0, 0.2463596165352311, 1.41673039757356, 1.6089827936132088, 1.7609535789950275, 1.8905966315993832, 2.001645039262916, 2.093914522870387, 2.1717542115214408, 2.254073626037705, 2.2541425098097396, 2.1726670815602858, 2.093120309932363, 2.000709109061542, 1.8912672270281756, 1.762145829385439, 1.6074458544024643, 1.4172756591364455, 0.24597886639318206, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001458838, 0.003500909, 0.003729961, 0.003903228, 0.004045518, 0.004160369, 0.004255295, 0.004333628, 0.004414349, 0.004414868, 0.004333855, 0.004255124, 0.004160966, 0.004045072, 0.003903165, 0.003729882, 0.003500672, 0.001458863, 0.0], [0.0, 0.001458838, 0.003500909, 0.003729961, 0.003903228, 0.004045518, 0.004160369, 0.004255295, 0.004333628, 0.004414349, 0.004414868, 0.004333855, 0.004255124, 0.004160966, 0.004045072, 0.003903165, 0.003729882, 0.003500672, 0.001458863, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 0.9988465226486, 1.0002475283378094, 0.9997478710238172, 1.0003067124973886, 1.0008816284262232, 0.9997923827923278, 0.9998465520007493, 0.9998280331234246, 0.9995329013341008, 0.9997366816820854, 0.9995122652901592, 1.0001455526780956, 1.0005471329410904, 1.0003045050779786, 0.9995980711667023, 1.0006605634721828, 0.9997283145370142, 1.0004219650535746, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08452018461560538, 0.08451607792055796, 0.08451609682178807, 0.08451609196309905, 0.08451611591443457, 0.0845160905637102, 0.08451607029180465, 0.08451606172572462, 0.0845159994198401, 0.08451590345090859, 0.08451603473457402, 0.08451610200266335, 0.08451610894445621, 0.08451599090719357, 0.0845161165527974, 0.08451608921290829, 0.08451616017334096, 0.08451973057522387, 1.0], [1.0, 0.08452018461560538, 0.08451607792055796, 0.08451609682178807, 0.08451609196309905, 0.08451611591443457, 0.0845160905637102, 0.08451607029180465, 0.08451606172572462, 0.0845159994198401, 0.08451590345090859, 0.08451603473457402, 0.08451610200266335, 0.08451610894445621, 0.08451599090719357, 0.0845161165527974, 0.08451608921290829, 0.08451616017334096, 0.08451973057522387, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0005004929737200967, 0.00020884926189453044, 0.00019592611323678079, 0.00018733348825084202, 0.00018084844884796262, 0.0001756645740305344, 0.00017175524951198144, 0.00016864761656787172, 0.00016551505381782547, 0.00016552926712162469, 0.0001685855338000361, 0.00017181358009449625, 0.00017577200712358073, 0.00018076412655240823, 0.0001872037731291783, 0.0001961092742267223, 0.00020875498253219218, 0.0005012735830283527, 1.0], [1.0, 0.0005004929737200967, 0.00020884926189453044, 0.00019592611323678079, 0.00018733348825084202, 0.00018084844884796262, 0.0001756645740305344, 0.00017175524951198144, 0.00016864761656787172, 0.00016551505381782547, 0.00016552926712162469, 0.0001685855338000361, 0.00017181358009449625, 0.00017577200712358073, 0.00018076412655240823, 0.0001872037731291783, 0.0001961092742267223, 0.00020875498253219218, 0.0005012735830283527, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }