import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 2.951836330935251, 16.893839928057567, 19.066205035971215, 20.795251798561157, 22.215071942446034, 23.399658273381302, 24.32910071942446, 25.05428057553957, 25.65886690647479, 25.667122302158308, 25.043866906474822, 24.338615107913668, 23.3983273381295, 22.213794964028768, 20.800503597122308, 19.070701438848914, 16.899667266187063, 2.949937050359711, 0.0], '_alpha3.yoda' : [0.0, 2.95311, 16.90307, 19.07301, 20.79353, 22.21887, 23.39688, 24.33555, 25.04803, 25.65777, 25.65579, 25.04387, 24.33287, 23.4043, 22.22053, 20.78477, 19.07242, 16.89545, 2.955706, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.24948895803037, 1.4278005449826616, 1.6114023922946312, 1.7575326618298412, 1.8775315880531716, 1.9776527299748037, 2.0561959408873385, 2.117487832985218, 2.168585973861461, 2.169281727935426, 2.116609240576573, 2.0570012652569947, 1.9775349569547318, 1.8774247644534006, 1.7579763618064834, 1.6117819578510797, 1.4282944732163552, 0.24933007647460528, 0.0], [0.0, 0.24948895803037, 1.4278005449826616, 1.6114023922946312, 1.7575326618298412, 1.8775315880531716, 1.9776527299748037, 2.0561959408873385, 2.117487832985218, 2.168585973861461, 2.169281727935426, 2.116609240576573, 2.0570012652569947, 1.9775349569547318, 1.8774247644534006, 1.7579763618064834, 1.6117819578510797, 1.4282944732163552, 0.24933007647460528, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001459672, 0.003492193, 0.003709583, 0.003873286, 0.004003837, 0.004108605, 0.004190212, 0.004251109, 0.00430254, 0.004302374, 0.004250756, 0.004189982, 0.004109257, 0.004003987, 0.00387247, 0.003709525, 0.003491406, 0.001460314, 0.0], [0.0, 0.001459672, 0.003492193, 0.003709583, 0.003873286, 0.004003837, 0.004108605, 0.004190212, 0.004251109, 0.00430254, 0.004302374, 0.004250756, 0.004189982, 0.004109257, 0.004003987, 0.00387247, 0.003709525, 0.003491406, 0.001460314, 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, 1.0004314836332222, 1.0005463572510298, 1.0003569123491511, 0.9999172023220572, 1.0001709676009065, 0.999881268634403, 1.0002650850374586, 0.9997505186580504, 0.9999572503930596, 0.9995584895717992, 1.000000123524262, 0.999763950911414, 1.000255260206603, 1.0003031915970295, 0.9992435953750426, 1.0000901152564627, 0.9997504527088826, 1.001955617879909, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451991576081817, 0.08451604555642481, 0.08451615773849501, 0.08451605582152395, 0.08451611558663456, 0.08451630818149672, 0.08451590400321138, 0.08451601021234335, 0.08451604592540435, 0.0845159695893534, 0.0845160712792858, 0.08451595360444988, 0.08451608221294415, 0.08451616517995017, 0.08451604806576388, 0.08451613397752217, 0.08451612985742588, 0.08452047356203833, 1.0], [1.0, 0.08451991576081817, 0.08451604555642481, 0.08451615773849501, 0.08451605582152395, 0.08451611558663456, 0.08451630818149672, 0.08451590400321138, 0.08451601021234335, 0.08451604592540435, 0.0845159695893534, 0.0845160712792858, 0.08451595360444988, 0.08451608221294415, 0.08451616517995017, 0.08451604806576388, 0.08451613397752217, 0.08451612985742588, 0.08452047356203833, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004944962512665876, 0.00020671398656975013, 0.00019456325959997403, 0.00018625819189494, 0.0001802306564828144, 0.00017558397443238807, 0.00017223045143853247, 0.00016967595565886443, 0.00016768238502824502, 0.0001676219854080884, 0.00016973241456178688, 0.00017215367355218305, 0.00017562182717666434, 0.00018024776975225233, 0.00018617193482448882, 0.00019451434504885745, 0.00020659613855153363, 0.0004950322583398624, 1.0], [1.0, 0.0004944962512665876, 0.00020671398656975013, 0.00019456325959997403, 0.00018625819189494, 0.0001802306564828144, 0.00017558397443238807, 0.00017223045143853247, 0.00016967595565886443, 0.00016768238502824502, 0.0001676219854080884, 0.00016973241456178688, 0.00017215367355218305, 0.00017562182717666434, 0.00018024776975225233, 0.00018617193482448882, 0.00019451434504885745, 0.00020659613855153363, 0.0004950322583398624, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }