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, 4.499508992805754, 22.290845323741028, 19.91929856115107, 17.751922661870505, 15.945719424460425, 14.509068345323744, 13.41073561151079, 12.70092985611511, 12.371372302158258, 12.371384892086347, 12.696026978417267, 13.398823741007194, 14.473041366906479, 15.925095323741001, 17.7391582733813, 19.925521582733804, 22.409226618705056, 4.588730215827336, 0.0], '_alpha2.yoda' : [0.0, 4.500516, 22.29282, 19.91933, 17.75984, 15.94389, 14.49382, 13.41044, 12.70499, 12.37393, 12.37564, 12.69721, 13.39837, 14.47555, 15.92748, 17.74547, 19.9176, 22.41073, 4.589737, 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.38028975343611415, 1.8839273438602306, 1.683499161582294, 1.5003231239361698, 1.347670643651348, 1.226249970949252, 1.1334242123369063, 1.0734356301463532, 1.0455817339958213, 1.0455838996545488, 1.073021944495968, 1.132419292380248, 1.2232060535868838, 1.3459256915158608, 1.4992443708604521, 1.6840246063521276, 1.8939344244617558, 0.38783163606228516, 0.0], [0.0, 0.38028975343611415, 1.8839273438602306, 1.683499161582294, 1.5003231239361698, 1.347670643651348, 1.226249970949252, 1.1334242123369063, 1.0734356301463532, 1.0455817339958213, 1.0455838996545488, 1.073021944495968, 1.132419292380248, 1.2232060535868838, 1.3459256915158608, 1.4992443708604521, 1.6840246063521276, 1.8939344244617558, 0.38783163606228516, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001550068, 0.003449866, 0.003261047, 0.003079209, 0.00291754, 0.002781705, 0.002675724, 0.002604395, 0.002570239, 0.002570416, 0.002603598, 0.002674519, 0.002779951, 0.002916038, 0.003077963, 0.003260906, 0.003458977, 0.001565358, 0.0], [0.0, 0.001550068, 0.003449866, 0.003261047, 0.003079209, 0.00291754, 0.002781705, 0.002675724, 0.002604395, 0.002570239, 0.002570416, 0.002603598, 0.002674519, 0.002779951, 0.002916038, 0.003077963, 0.003260906, 0.003458977, 0.001565358, 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, 1.000223803796338, 1.000088586871888, 1.000001578311045, 1.000445998908417, 0.9998852717515135, 0.9989490472468097, 0.9999779570994946, 1.0003196729633883, 1.0002067432601067, 1.0003439475815175, 1.0000931804559603, 0.9999661357581856, 1.000173331439462, 1.0001497432957556, 1.0003558075598307, 0.9996024403827567, 1.0000670876028221, 1.0002194036531482, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451805609104412, 0.08451574251667074, 0.08451598616357153, 0.08451609172220684, 0.08451613927083448, 0.0845161068763227, 0.08451618503045115, 0.08451630253115104, 0.08451622895654134, 0.0845163180011788, 0.08451635667757024, 0.08451632130322537, 0.08451617200402824, 0.08451602104443079, 0.08451609415482586, 0.08451596106831134, 0.08451583165663033, 0.0845182910785615, 1.0], [1.0, 0.08451805609104412, 0.08451574251667074, 0.08451598616357153, 0.08451609172220684, 0.08451613927083448, 0.0845161068763227, 0.08451618503045115, 0.08451630253115104, 0.08451622895654134, 0.0845163180011788, 0.08451635667757024, 0.08451632130322537, 0.08451617200402824, 0.08451602104443079, 0.08451609415482586, 0.08451596106831134, 0.08451583165663033, 0.0845182910785615, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00034449714457252944, 0.00015476604632511153, 0.00016371294350495217, 0.0001734577746113021, 0.00018296697203417178, 0.00019172182071197842, 0.0001995210462357751, 0.00020505545889193798, 0.0002077569842071285, 0.00020777107998993938, 0.00020507187046987308, 0.0001996084918868375, 0.00019207787288969775, 0.00018310961038034068, 0.00017351234779942594, 0.00016365473729057587, 0.0001543550368272317, 0.0003411309722678412, 1.0], [1.0, 0.00034449714457252944, 0.00015476604632511153, 0.00016371294350495217, 0.0001734577746113021, 0.00018296697203417178, 0.00019172182071197842, 0.0001995210462357751, 0.00020505545889193798, 0.0002077569842071285, 0.00020777107998993938, 0.00020507187046987308, 0.0001996084918868375, 0.00019207787288969775, 0.00018310961038034068, 0.00017351234779942594, 0.00016365473729057587, 0.0001543550368272317, 0.0003411309722678412, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }