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, 4.031010791366905, 21.325143884892107, 19.63260791366906, 17.794170863309358, 16.154501798561146, 14.81194784172662, 13.804226618705034, 13.166232014388491, 12.976480215827323, 12.990944244604336, 13.178203237410072, 13.82167086330935, 14.822911870503601, 16.171125899280568, 17.80194064748202, 19.62446043165467, 21.218021582733833, 3.958088129496401, 0.0], '_alpha3.yoda' : [0.0, 4.035382, 21.32838, 19.64499, 17.78552, 16.15638, 14.80583, 13.80045, 13.16435, 12.98008, 12.98521, 13.17699, 13.8219, 14.82288, 16.17007, 17.80401, 19.63421, 21.21498, 3.958229, 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.3406966207825662, 1.8023117368855142, 1.6592696058711043, 1.5038912959622142, 1.365314057287616, 1.2518477880422496, 1.1666831025285245, 1.1127618044279362, 1.0967250725631148, 1.0979446145815281, 1.1137713909731854, 1.168156260174944, 1.2527753724193698, 1.3667189146215417, 1.504550100741591, 1.6585817609920686, 1.7932630599132937, 0.33452903804324047, 0.0], [0.0, 0.3406966207825662, 1.8023117368855142, 1.6592696058711043, 1.5038912959622142, 1.365314057287616, 1.2518477880422496, 1.1666831025285245, 1.1127618044279362, 1.0967250725631148, 1.0979446145815281, 1.1137713909731854, 1.168156260174944, 1.2527753724193698, 1.3667189146215417, 1.504550100741591, 1.6585817609920686, 1.7932630599132937, 0.33452903804324047, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001468752, 0.003376643, 0.00324065, 0.003083469, 0.002938856, 0.002813343, 0.002716145, 0.002652809, 0.002634176, 0.002634697, 0.002654082, 0.002718255, 0.002814962, 0.002940101, 0.003085071, 0.003239761, 0.003367655, 0.001454644, 0.0], [0.0, 0.001468752, 0.003376643, 0.00324065, 0.003083469, 0.002938856, 0.002813343, 0.002716145, 0.002652809, 0.002634176, 0.002634697, 0.002654082, 0.002718255, 0.002814962, 0.002940101, 0.003085071, 0.003239761, 0.003367655, 0.001454644, 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.0010843951701784, 1.000151751149974, 1.0006306898393422, 0.9995138372349119, 1.0001162648939765, 0.9995869657527833, 0.9997264157703759, 0.9998570574795861, 1.0002774083659671, 0.9995585967812373, 0.9999079360525699, 1.0000165780745986, 0.9999978499161379, 0.9999347046527777, 1.0001162430860184, 1.0004968069506566, 0.999856650973703, 1.0000355905424514, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451890565816046, 0.08451580662779817, 0.0845160058799855, 0.08451595230341183, 0.0845160113454704, 0.08451608130266831, 0.08451636841050139, 0.0845163447835245, 0.08451637534386612, 0.08451615170602775, 0.08451617955105056, 0.0845162840099095, 0.08451614523272527, 0.08451600235716088, 0.08451607218196185, 0.08451604398339234, 0.08451603524489586, 0.0845178346460425, 1.0], [1.0, 0.08451890565816046, 0.08451580662779817, 0.0845160058799855, 0.08451595230341183, 0.0845160113454704, 0.08451608130266831, 0.08451636841050139, 0.0845163447835245, 0.08451637534386612, 0.08451615170602775, 0.08451617955105056, 0.0845162840099095, 0.08451614523272527, 0.08451600235716088, 0.08451607218196185, 0.08451604398339234, 0.08451603524489586, 0.0845178346460425, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0003643632021887866, 0.00015834092460178885, 0.00016506467272459107, 0.0001732853429185594, 0.00018192179719598404, 0.00018993740931726438, 0.00019676183787939002, 0.00020148581591915765, 0.00020299618665369008, 0.00020281027694305564, 0.00020139938291933716, 0.00019666616481338805, 0.00018990614155924026, 0.00018181176859990937, 0.00017329970148149916, 0.00016508790197228542, 0.00015871672987364805, 0.00036751177649626475, 1.0], [1.0, 0.0003643632021887866, 0.00015834092460178885, 0.00016506467272459107, 0.0001732853429185594, 0.00018192179719598404, 0.00018993740931726438, 0.00019676183787939002, 0.00020148581591915765, 0.00020299618665369008, 0.00020281027694305564, 0.00020139938291933716, 0.00019666616481338805, 0.00018990614155924026, 0.00018181176859990937, 0.00017329970148149916, 0.00016508790197228542, 0.00015871672987364805, 0.00036751177649626475, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }