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.291449640287769, 13.087631294964039, 14.40182913669064, 15.49352517985612, 16.418834532374092, 17.145706834532376, 17.714325539568346, 18.126654676258994, 18.772805755395662, 18.78192446043168, 18.13884892086331, 17.713839928057553, 17.15916007194245, 16.418050359712225, 15.513170863309357, 14.399492805755388, 13.086667266187062, 2.292478417266186, 0.0], '_alpha3.yoda' : [0.0, 2.292274, 13.08775, 14.40267, 15.49893, 16.4176, 17.15774, 17.72321, 18.12498, 18.78235, 18.78925, 18.12595, 17.72184, 17.15195, 16.41698, 15.49889, 14.39457, 13.08731, 2.29303, 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.19367246875582889, 1.1061162777089222, 1.217188799689829, 1.309453559624159, 1.3876546770795548, 1.4490858857394422, 1.4971447083807263, 1.5319944981909854, 1.5866001867778794, 1.5873740432521992, 1.5330249909565616, 1.497102574897945, 1.4502240331720955, 1.3875884710240995, 1.311112590843451, 1.216992120107057, 1.1060355589339879, 0.19376063809907096, 0.0], [0.0, 0.19367246875582889, 1.1061162777089222, 1.217188799689829, 1.309453559624159, 1.3876546770795548, 1.4490858857394422, 1.4971447083807263, 1.5319944981909854, 1.5866001867778794, 1.5873740432521992, 1.5330249909565616, 1.497102574897945, 1.4502240331720955, 1.3875884710240995, 1.311112590843451, 1.216992120107057, 1.1060355589339879, 0.19376063809907096, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001106311, 0.002643483, 0.0027731, 0.002876702, 0.00296073, 0.003026732, 0.003076205, 0.003110876, 0.003166788, 0.00316737, 0.00311096, 0.003076086, 0.003026222, 0.002960674, 0.002876698, 0.00277232, 0.002643438, 0.001106494, 0.0], [0.0, 0.001106311, 0.002643483, 0.0027731, 0.002876702, 0.00296073, 0.003026732, 0.003076205, 0.003110876, 0.003166788, 0.00316737, 0.00311096, 0.003076086, 0.003026222, 0.002960674, 0.002876698, 0.00277232, 0.002643438, 0.001106494, 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.0003597546713388, 1.0000090700168185, 1.0000583858690018, 1.0003488437964336, 0.9999248099874777, 1.0007018179876603, 1.0005015409935767, 0.9999076125027534, 1.0005084079987134, 1.0003900313614695, 0.9992888787530242, 1.0004516283298788, 0.9995798120705082, 0.9999348059185607, 0.9990794362135769, 0.9996581264477996, 1.0000491136360286, 1.0002406054206048, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451962694301532, 0.08451615519872892, 0.0845162644367772, 0.08451617978629182, 0.08451602787904496, 0.08451596074306515, 0.08451604352853098, 0.08451611869660004, 0.08451587937630795, 0.08451604874656787, 0.08451611222106138, 0.0845159819089611, 0.0845160268388316, 0.0845160320880159, 0.08451609296358624, 0.08451631849287308, 0.08451621306149729, 0.08452015802623492, 1.0], [1.0, 0.08451962694301532, 0.08451615519872892, 0.0845162644367772, 0.08451617978629182, 0.08451602787904496, 0.08451596074306515, 0.08451604352853098, 0.08451611869660004, 0.08451587937630795, 0.08451604874656787, 0.08451611222106138, 0.0845159819089611, 0.0845160268388316, 0.0845160320880159, 0.08451609296358624, 0.08451631849287308, 0.08451621306149729, 0.08452015802623492, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004827996132007794, 0.00020198330319843132, 0.0001925519302916285, 0.00018567123792719164, 0.00018032522309437582, 0.00017653002172555516, 0.0001736563434565265, 0.0001716188704181806, 0.00016869018095975368, 0.00016863926839194636, 0.00017150812676000474, 0.00017365438620271616, 0.00017636189576366752, 0.00018033042505857525, 0.00018543584837344638, 0.00019252900344461583, 0.0002019947436754991, 0.00048266277739683595, 1.0], [1.0, 0.0004827996132007794, 0.00020198330319843132, 0.0001925519302916285, 0.00018567123792719164, 0.00018032522309437582, 0.00017653002172555516, 0.0001736563434565265, 0.0001716188704181806, 0.00016869018095975368, 0.00016863926839194636, 0.00017150812676000474, 0.00017365438620271616, 0.00017636189576366752, 0.00018033042505857525, 0.00018543584837344638, 0.00019252900344461583, 0.0002019947436754991, 0.00048266277739683595, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }