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, 5.635016187050358, 28.12332733812952, 25.82172661870503, 23.430143884892093, 21.308920863309343, 19.58147482014389, 18.310071942446044, 17.51518165467626, 17.31323561151077, 17.426856115107938, 17.836287769784175, 18.822266187050356, 20.30079136690648, 22.214676258992796, 24.5239928057554, 27.11208633093524, 29.54323741007197, 5.917588129496401, 0.0], '_alpha2.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 = { '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.47626486797871503, 2.3768739253166267, 2.182351451834476, 1.9802248119556503, 1.8009453621654663, 1.6549501259128139, 1.5474954345564595, 1.4803156954692736, 1.4632480507168304, 1.4728507204951586, 1.5074532752463266, 1.5907839748289976, 1.715742686779612, 1.877495406546836, 2.0726706416701037, 2.291405023230845, 2.4968751496965575, 0.5001491030723468, 0.0], [0.0, 0.47626486797871503, 2.3768739253166267, 2.182351451834476, 1.9802248119556503, 1.8009453621654663, 1.6549501259128139, 1.5474954345564595, 1.4803156954692736, 1.4632480507168304, 1.4728507204951586, 1.5074532752463266, 1.5907839748289976, 1.715742686779612, 1.877495406546836, 2.0726706416701037, 2.291405023230845, 2.4968751496965575, 0.5001491030723468, 0.0], ], '_alpha2.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 = { '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.9981424743598054, 0.9997657696029235, 1.0004664049570662, 0.9994987702615148, 0.9998596426666311, 0.9996897669762014, 0.9995302070645553, 1.000128365515589, 1.0004138099110986, 1.000385834647836, 1.0004677111248428, 1.0004863289499084, 0.9998886069579451, 1.0005736631431683, 0.9999839827976417, 1.0000119381836132, 1.0000721853836947, 0.9994742571756737, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451881097931953, 0.08451609927727394, 0.08451609313583237, 0.08451611828267568, 0.08451602846141378, 0.08451611235177907, 0.0845160761476358, 0.08451614859923842, 0.08451615189387156, 0.08451614627255079, 0.0845160884766644, 0.08451607043595263, 0.08451604943719315, 0.08451599225024947, 0.08451603530007887, 0.08451599759832286, 0.08451596265632402, 0.0845190797546957, 1.0], [1.0, 0.08451881097931953, 0.08451609927727394, 0.08451609313583237, 0.08451611828267568, 0.08451602846141378, 0.08451611235177907, 0.0845160761476358, 0.08451614859923842, 0.08451615189387156, 0.08451614627255079, 0.0845160884766644, 0.08451607043595263, 0.08451604943719315, 0.08451599225024947, 0.08451603530007887, 0.08451599759832286, 0.08451596265632402, 0.0845190797546957, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00035749018869357825, 0.00016015160460382282, 0.00016719532600397861, 0.0001754361398800659, 0.00018399425410372936, 0.00019192231609306253, 0.00019845787670425523, 0.00020297197426158865, 0.00020418136039514851, 0.00020351186562706254, 0.00020117072825425814, 0.00019583263584572845, 0.00018851018814165373, 0.000180268528485932, 0.00017152064238955535, 0.0001631310459111921, 0.00015627952129667268, 0.00034908309851834824, 1.0], [1.0, 0.00035749018869357825, 0.00016015160460382282, 0.00016719532600397861, 0.0001754361398800659, 0.00018399425410372936, 0.00019192231609306253, 0.00019845787670425523, 0.00020297197426158865, 0.00020418136039514851, 0.00020351186562706254, 0.00020117072825425814, 0.00019583263584572845, 0.00018851018814165373, 0.000180268528485932, 0.00017152064238955535, 0.0001631310459111921, 0.00015627952129667268, 0.00034908309851834824, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }