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.0155251798561142, 12.395602517985623, 14.050334532374096, 15.351323741007198, 16.416050359712223, 17.306796762589933, 18.010413669064747, 18.594352517985612, 19.504514388489184, 19.509820143884916, 18.59246402877698, 18.006043165467624, 17.29191366906475, 16.417232014388482, 15.347985611510795, 14.060339928057548, 12.39962949640289, 2.0133597122302147, 0.0], '_alpha3.yoda' : [0.0, 2.013144, 12.40401, 14.05867, 15.34931, 16.41489, 17.30184, 18.01227, 18.58995, 19.50683, 19.50958, 18.59361, 18.01122, 17.30155, 16.41341, 15.3405, 14.06008, 12.39675, 2.012224, 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.17035347069854, 1.0476293723924934, 1.18747893941809, 1.2974340701551101, 1.3874214265664588, 1.4627023448677774, 1.522167260210087, 1.5715203242719826, 1.648442864851925, 1.6488912009083898, 1.5713626426884109, 1.5217969090893322, 1.4614450979203046, 1.387520396715555, 1.2971535496621311, 1.1883254270325374, 1.047970050699044, 0.17016957804089544, 0.0], [0.0, 0.17035347069854, 1.0476293723924934, 1.18747893941809, 1.2974340701551101, 1.3874214265664588, 1.4627023448677774, 1.522167260210087, 1.5715203242719826, 1.648442864851925, 1.6488912009083898, 1.5713626426884109, 1.5217969090893322, 1.4614450979203046, 1.387520396715555, 1.2971535496621311, 1.1883254270325374, 1.047970050699044, 0.17016957804089544, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037394, 0.002575059, 0.002741438, 0.002864513, 0.002962274, 0.003041252, 0.003103062, 0.003152429, 0.003229234, 0.003229462, 0.00315274, 0.003102972, 0.003041226, 0.002962141, 0.00286369, 0.002741575, 0.002574306, 0.001037157, 0.0], [0.0, 0.001037394, 0.002575059, 0.002741438, 0.002864513, 0.002962274, 0.003041252, 0.003103062, 0.003152429, 0.003229234, 0.003229462, 0.00315274, 0.003102972, 0.003041226, 0.002962141, 0.00286369, 0.002741575, 0.002574306, 0.001037157, 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.9988185809436109, 1.0006782632794313, 1.0005932575916037, 0.9998688229731082, 0.9999293155365148, 0.9997135944532123, 1.000103069866654, 0.9997632335957193, 1.0001187218233016, 0.9999876911276914, 1.0000616363286354, 1.0002875053938727, 1.0005572738286617, 0.9997671949580091, 0.9995122740077903, 0.9999815133873805, 0.9997677756094467, 0.9994359119121556, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08452063630914367, 0.08451621217059975, 0.08451606164123415, 0.08451610376044259, 0.08451615316504064, 0.08451606411820407, 0.08451595216963892, 0.08451600144462737, 0.08451596548462507, 0.08451596112869406, 0.084516105033539, 0.08451589808514216, 0.08451609959948107, 0.0845160984202146, 0.08451620834784224, 0.08451612358682895, 0.08451623905400223, 0.08452020620418456, 1.0], [1.0, 0.08452063630914367, 0.08451621217059975, 0.08451606164123415, 0.08451610376044259, 0.08451615316504064, 0.08451606411820407, 0.08451595216963892, 0.08451600144462737, 0.08451596548462507, 0.08451596112869406, 0.084516105033539, 0.08451589808514216, 0.08451609959948107, 0.0845160984202146, 0.08451620834784224, 0.08451612358682895, 0.08451623905400223, 0.08452020620418456, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.000514701582678346, 0.00020773972029707085, 0.00019511549662275387, 0.0001865971331415658, 0.00018044986066014537, 0.0001757258747369078, 0.00017229265562788916, 0.00016953690627037295, 0.00016556341448345773, 0.0001655300754277958, 0.00016957085382121825, 0.00017232947691422546, 0.00017587561782943413, 0.00018042877126935307, 0.00018658409464837318, 0.00019498639535230297, 0.0002076115258723498, 0.0005151374559149854, 1.0], [1.0, 0.000514701582678346, 0.00020773972029707085, 0.00019511549662275387, 0.0001865971331415658, 0.00018044986066014537, 0.0001757258747369078, 0.00017229265562788916, 0.00016953690627037295, 0.00016556341448345773, 0.0001655300754277958, 0.00016957085382121825, 0.00017232947691422546, 0.00017587561782943413, 0.00018042877126935307, 0.00018658409464837318, 0.00019498639535230297, 0.0002076115258723498, 0.0005151374559149854, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }