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, 5.635188848920861, 28.124082733812973, 25.822446043165456, 23.430773381294973, 21.309496402877688, 19.581996402877703, 18.310611510791365, 17.515690647482018, 17.313690647481994, 17.42729676258995, 17.83676618705036, 18.82276978417266, 20.301348920863315, 22.21525179856114, 24.524640287769788, 27.112841726618694, 29.543992805755423, 5.9177338129496375, 0.0], '_alpha3.yoda' : [0.0, 5.624549, 28.11674, 25.83377, 23.4184, 21.30593, 19.5754, 18.30147, 17.51743, 17.3204, 17.43358, 17.84463, 18.83142, 20.29853, 22.22742, 24.5236, 27.11241, 29.54537, 5.914477, 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.4762795046551195, 2.3769365284949813, 2.18241222383527, 1.9802779020452435, 1.8009947564407514, 1.6549932250370345, 1.5475405856689957, 1.4803587437671712, 1.4632865166260696, 1.4728878374994978, 1.5074938319378202, 1.5908266772674324, 1.7157888779002552, 1.8775445098507457, 2.0727260458677037, 2.291469255588876, 2.4969392785110753, 0.5001614885945872, 0.0], [0.0, 0.4762795046551195, 2.3769365284949813, 2.18241222383527, 1.9802779020452435, 1.8009947564407514, 1.6549932250370345, 1.5475405856689957, 1.4803587437671712, 1.4632865166260696, 1.4728878374994978, 1.5074938319378202, 1.5908266772674324, 1.7157888779002552, 1.8775445098507457, 2.0727260458677037, 2.291469255588876, 2.4969392785110753, 0.5001614885945872, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.002014463, 0.004503996, 0.004317272, 0.004110494, 0.003920719, 0.003758122, 0.003633778, 0.003555091, 0.00353504, 0.003546572, 0.003588139, 0.003686014, 0.003826906, 0.004004607, 0.004206371, 0.004422823, 0.004617003, 0.00206573, 0.0], [0.0, 0.002014463, 0.004503996, 0.004317272, 0.004110494, 0.003920719, 0.003758122, 0.003633778, 0.003555091, 0.00353504, 0.003546572, 0.003588139, 0.003686014, 0.003826906, 0.004004607, 0.004206371, 0.004422823, 0.004617003, 0.00206573, 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.9981118913303325, 0.9997389165050299, 1.0004385315324356, 0.9994719175038049, 0.999832637862, 0.9996631394091802, 0.9995007533863094, 1.0000993025369647, 1.000387517176702, 1.0003605399905473, 1.0004408766066208, 1.0004595612615215, 0.9998611461300279, 1.0005477408741164, 0.999957581935654, 0.9999840766739596, 1.0000466150345226, 0.9994496520031856, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451881869874282, 0.08451605518985486, 0.08451609193749866, 0.08451611348117598, 0.08451606374881485, 0.08451606215154969, 0.08451605151236768, 0.0845161503226241, 0.08451615235708752, 0.08451613911006844, 0.08451609535770407, 0.08451607789439666, 0.08451600357141643, 0.08451601300203819, 0.0845160630919163, 0.08451601195824376, 0.08451597233074909, 0.0845190920044588, 1.0], [1.0, 0.08451881869874282, 0.08451605518985486, 0.08451609193749866, 0.08451611348117598, 0.08451606374881485, 0.08451606215154969, 0.08451605151236768, 0.0845161503226241, 0.08451615235708752, 0.08451613911006844, 0.08451609535770407, 0.08451607789439666, 0.08451600357141643, 0.08451601300203819, 0.0845160630919163, 0.08451601195824376, 0.08451597233074909, 0.0845190920044588, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00035747923521423243, 0.00016014730302954712, 0.0001671906678702373, 0.00017543142657345872, 0.00018398928467734863, 0.0001919172040828135, 0.00019845202864243128, 0.00020296607604856649, 0.00020417599412948483, 0.00020350671984958657, 0.00020116533245835886, 0.00019582739640684692, 0.00018850501091910993, 0.0001802638581958083, 0.00017151611402421583, 0.00016312650088824094, 0.00015627552546318546, 0.0003490745047503846, 1.0], [1.0, 0.00035747923521423243, 0.00016014730302954712, 0.0001671906678702373, 0.00017543142657345872, 0.00018398928467734863, 0.0001919172040828135, 0.00019845202864243128, 0.00020296607604856649, 0.00020417599412948483, 0.00020350671984958657, 0.00020116533245835886, 0.00019582739640684692, 0.00018850501091910993, 0.0001802638581958083, 0.00017151611402421583, 0.00016312650088824094, 0.00015627552546318546, 0.0003490745047503846, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }