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, 2.2916474820143877, 13.08884712230217, 14.403142086330929, 15.494782374100721, 16.420071942446036, 17.1466582733813, 17.714870503597123, 18.12559352517986, 18.752410071942425, 18.76172661870506, 18.13767985611511, 17.71428417266187, 17.159933453237414, 16.419267985611505, 15.514354316546767, 14.400705035971217, 13.08775000000001, 2.2926672661870495, 0.0], '_alpha2.yoda' : [0.0, 2.292464, 13.08898, 14.40392, 15.50034, 16.41886, 17.15886, 17.72377, 18.12393, 18.76126, 18.76825, 18.12497, 17.72251, 17.1531, 16.41826, 15.5002, 14.39585, 13.08859, 2.293224, 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.19368917057596652, 1.10621906863618, 1.2172997501623213, 1.3095599043209216, 1.3877592249282202, 1.4491663586113588, 1.4971907297531377, 1.5319048619550322, 1.584876023294178, 1.5856669396166414, 1.5329248638694728, 1.497140062952324, 1.4502892757962007, 1.387691275550253, 1.3112126333855225, 1.2170944506130823, 1.106127098256356, 0.1937764976429445, 0.0], [0.0, 0.19368917057596652, 1.10621906863618, 1.2172997501623213, 1.3095599043209216, 1.3877592249282202, 1.4491663586113588, 1.4971907297531377, 1.5319048619550322, 1.584876023294178, 1.5856669396166414, 1.5329248638694728, 1.497140062952324, 1.4502892757962007, 1.387691275550253, 1.3112126333855225, 1.2170944506130823, 1.106127098256356, 0.1937764976429445, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001106295, 0.002643459, 0.002773065, 0.002876672, 0.002960678, 0.003026662, 0.003076081, 0.003110612, 0.003164833, 0.003165422, 0.003110701, 0.003075972, 0.003026154, 0.002960624, 0.002876659, 0.002772288, 0.002643419, 0.001106478, 0.0], [0.0, 0.001106295, 0.002643459, 0.002773065, 0.002876672, 0.002960678, 0.003026662, 0.003076081, 0.003110612, 0.003164833, 0.003165422, 0.003110701, 0.003075972, 0.003026154, 0.002960624, 0.002876659, 0.002772288, 0.002643419, 0.001106478, 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.0003563017401325, 1.0000101519787485, 1.0000540099975692, 1.000358677247934, 0.9999261914046245, 1.0007116095990345, 1.0005023743414363, 0.9999082223057939, 1.0004719355018168, 1.0003476962130144, 0.9992992567838922, 1.0004643612611128, 0.9996017785700604, 0.9999386095889057, 0.9990876631886851, 0.9996628612308154, 1.0000641821550678, 1.000242832364365, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451961835147143, 0.08451615778682954, 0.08451626338655509, 0.08451618568775963, 0.08451602586105911, 0.0845159643066465, 0.08451604144942088, 0.08451612135221548, 0.08451585781315055, 0.08451604544945046, 0.08451603931870305, 0.08451597865088067, 0.0845160198172323, 0.08451602573064229, 0.08451609436217751, 0.08451630997044435, 0.08451621541184352, 0.08452011353798211, 1.0], [1.0, 0.08451961835147143, 0.08451615778682954, 0.08451626338655509, 0.08451618568775963, 0.08451602586105911, 0.0845159643066465, 0.08451604144942088, 0.08451612135221548, 0.08451585781315055, 0.08451604544945046, 0.08451603931870305, 0.08451597865088067, 0.0845160198172323, 0.08451602573064229, 0.08451609436217751, 0.08451630997044435, 0.08451621541184352, 0.08452011353798211, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00048275095043307116, 0.0002019627072804444, 0.00019253194777768198, 0.00018565423705519806, 0.00018030846700169568, 0.00017651614394733874, 0.00017364400148312578, 0.00017161435269299043, 0.00016876940019220572, 0.00016871698774483467, 0.00017150490165649432, 0.00017364359575686899, 0.000176349984587445, 0.00018031400684820096, 0.0001854191893072799, 0.0001925105745222307, 0.00020197658115413253, 0.0004826160412889704, 1.0], [1.0, 0.00048275095043307116, 0.0002019627072804444, 0.00019253194777768198, 0.00018565423705519806, 0.00018030846700169568, 0.00017651614394733874, 0.00017364400148312578, 0.00017161435269299043, 0.00016876940019220572, 0.00016871698774483467, 0.00017150490165649432, 0.00017364359575686899, 0.000176349984587445, 0.00018031400684820096, 0.0001854191893072799, 0.0001925105745222307, 0.00020197658115413253, 0.0004826160412889704, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }