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.919233812949638, 29.54140287769787, 27.109208633093516, 24.52767985611511, 22.216420863309345, 20.30235611510792, 18.820611510791366, 17.83773201438849, 17.425329136690625, 17.311949640287793, 17.516325539568346, 18.306474820143883, 19.58535971223022, 21.30744604316546, 23.428651079136692, 25.820215827338117, 28.124550359712256, 5.635958633093523, 0.0], '_alpha2.yoda' : [0.0, 5.913993, 29.54629, 27.11405, 24.52281, 22.22594, 20.29922, 18.83135, 17.84475, 17.43144, 17.32184, 17.51713, 18.29918, 19.57707, 21.30865, 23.41911, 25.83033, 28.11919, 5.623172, 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.5002874607129559, 2.4967209746956573, 2.291163606399661, 2.0729843191329875, 1.8776427126061794, 1.7158750351574534, 1.590645895765635, 1.5075767659020647, 1.4727204741391005, 1.463140053377082, 1.4804112959567752, 1.5471913618524968, 1.6552771039229959, 1.8008205233219474, 1.9800990236005391, 2.182225455709753, 2.3769759948687312, 0.4763465016107619, 0.0], [0.0, 0.5002874607129559, 2.4967209746956573, 2.291163606399661, 2.0729843191329875, 1.8776427126061794, 1.7158750351574534, 1.590645895765635, 1.5075767659020647, 1.4727204741391005, 1.463140053377082, 1.4804112959567752, 1.5471913618524968, 1.6552771039229959, 1.8008205233219474, 1.9800990236005391, 2.182225455709753, 2.3769759948687312, 0.4763465016107619, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.002065646, 0.004617075, 0.004422956, 0.004206303, 0.004004474, 0.003826971, 0.003686007, 0.003588151, 0.003546354, 0.003535188, 0.00355506, 0.003633551, 0.003758282, 0.00392097, 0.004110557, 0.004316984, 0.004504192, 0.002014216, 0.0], [0.0, 0.002065646, 0.004617075, 0.004422956, 0.004206303, 0.004004474, 0.003826971, 0.003686007, 0.003588151, 0.003546354, 0.003535188, 0.00355506, 0.003633551, 0.003758282, 0.00392097, 0.004110557, 0.004316984, 0.004504192, 0.002014216, 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.9991146129524108, 1.000165432979685, 1.0001785875409352, 0.9998014546771778, 1.0004284730087365, 0.9998455294996236, 1.0005705706853614, 1.0003934348607688, 1.0003506885443274, 1.0005713024770586, 1.0000459263234083, 0.9996015169378292, 0.9995767393424465, 1.0000565040423945, 0.9995927602018373, 1.0003917152640984, 0.999809406385393, 0.9977312407833441, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.084518955750399, 0.08451599218331449, 0.08451606379991217, 0.08451611939219608, 0.08451598590784379, 0.08451605446328428, 0.08451616435808104, 0.08451616857378531, 0.08451607786495996, 0.08451619163517615, 0.0845160871560998, 0.08451607297708759, 0.084516043016016, 0.08451601940813434, 0.0845161344079184, 0.08451615859071326, 0.08451605321568775, 0.08451916215525875, 1.0], [1.0, 0.084518955750399, 0.08451599218331449, 0.08451606379991217, 0.08451611939219608, 0.08451598590784379, 0.08451605446328428, 0.08451616435808104, 0.08451616857378531, 0.08451607786495996, 0.08451619163517615, 0.0845160871560998, 0.08451607297708759, 0.084516043016016, 0.08451601940813434, 0.0845161344079184, 0.08451615859071326, 0.08451605321568775, 0.08451916215525875, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0003489718543438749, 0.0001562916635717946, 0.00016315326868674007, 0.0001714920866822757, 0.0001802483858510905, 0.0001884988608367565, 0.0001958494811864384, 0.00020115511305504992, 0.0002035171888106737, 0.0002042050764619271, 0.00020295694961647802, 0.0001984844726086615, 0.00019189241633653088, 0.00018401876940374486, 0.00017545000717776994, 0.00016719395487892213, 0.00016015160926633503, 0.0003573865833884619, 1.0], [1.0, 0.0003489718543438749, 0.0001562916635717946, 0.00016315326868674007, 0.0001714920866822757, 0.0001802483858510905, 0.0001884988608367565, 0.0001958494811864384, 0.00020115511305504992, 0.0002035171888106737, 0.0002042050764619271, 0.00020295694961647802, 0.0001984844726086615, 0.00019189241633653088, 0.00018401876940374486, 0.00017545000717776994, 0.00016719395487892213, 0.00016015160926633503, 0.0003573865833884619, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }