import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 2.9560575539568337, 16.894697841726636, 19.078974820143877, 20.78602517985612, 22.217553956834525, 23.404334532374104, 24.341258992805752, 25.056384892086335, 25.6712230215827, 25.66746402877701, 25.06534172661871, 24.332446043165465, 23.391348920863315, 22.22489208633093, 20.80190647482015, 19.060233812949633, 16.90002338129498, 2.952823741007193, 0.0], '_alpha1.yoda' : [0.0, 2.953327, 16.89935, 19.07613, 20.79265, 22.23628, 23.39908, 24.33695, 25.05112, 25.65877, 25.66294, 25.05467, 24.33334, 23.40716, 22.2302, 20.7929, 19.0768, 16.89571, 2.953298, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.24984603975153344, 1.4278729290074348, 1.6124805382893732, 1.7567534774106441, 1.8777409102257712, 1.9780436207008094, 2.0572300645608896, 2.117667326579121, 2.169631384999058, 2.1693100604566986, 2.1184217970952726, 2.0564838176489384, 1.976946804748667, 1.8783592649664447, 1.7580968831041186, 1.6108959314883788, 1.428324368456563, 0.24957160127368336, 0.0], [0.0, 0.24984603975153344, 1.4278729290074348, 1.6124805382893732, 1.7567534774106441, 1.8777409102257712, 1.9780436207008094, 2.0572300645608896, 2.117667326579121, 2.169631384999058, 2.1693100604566986, 2.1184217970952726, 2.0564838176489384, 1.976946804748667, 1.8783592649664447, 1.7580968831041186, 1.6108959314883788, 1.428324368456563, 0.24957160127368336, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001459857, 0.003492124, 0.003710221, 0.003873554, 0.004005767, 0.00410917, 0.004190712, 0.004251756, 0.004303012, 0.004303362, 0.004252057, 0.004190401, 0.004109879, 0.00400522, 0.003873577, 0.003710286, 0.003491749, 0.00145985, 0.0], [0.0, 0.001459857, 0.003492124, 0.003710221, 0.003873554, 0.004005767, 0.00410917, 0.004190712, 0.004251756, 0.004303012, 0.004303362, 0.004252057, 0.004190401, 0.004109879, 0.00400522, 0.003873577, 0.003710286, 0.003491749, 0.00145985, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 0.9990762852525726, 1.0002753620287823, 0.9998508924001056, 1.000318715102409, 1.0008428490013732, 0.9997754889220698, 0.9998229757627974, 0.9997898782242925, 0.9995149034554283, 0.9998237446141177, 0.9995742437212666, 1.0000367392917648, 1.0006759370393805, 1.000238827421454, 0.9995670360872426, 1.0008691492041986, 0.9997447706906872, 1.000160612022391, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08452001870433876, 0.0845160382496374, 0.08451609971133728, 0.08451608531260349, 0.08451609542049267, 0.08451612319780662, 0.0845161733486719, 0.08451607587046418, 0.08451608959865185, 0.08451594820682644, 0.08451597509423008, 0.0845161153959105, 0.08451615216535802, 0.08451601284137168, 0.08451614207727653, 0.0845160635119768, 0.08451611789114083, 0.08451964057582244, 1.0], [1.0, 0.08452001870433876, 0.0845160382496374, 0.08451609971133728, 0.08451608531260349, 0.08451609542049267, 0.08451612319780662, 0.0845161733486719, 0.08451607587046418, 0.08451608959865185, 0.08451594820682644, 0.08451597509423008, 0.0845161153959105, 0.08451615216535802, 0.08451601284137168, 0.08451614207727653, 0.0845160635119768, 0.08451611789114083, 0.08451964057582244, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.000493852698519319, 0.00020669940550076778, 0.00019446647605418985, 0.00018635376251510978, 0.0001802973904230242, 0.00017557303303437148, 0.00017216496489514356, 0.000169687527482979, 0.00016762006221450012, 0.00016765824606495197, 0.00016963890005474897, 0.00017221453990142542, 0.00017570081203544013, 0.00018021324848021864, 0.00018621259569111154, 0.00019466109578777626, 0.0002066120810143188, 0.0004943911753777937, 1.0], [1.0, 0.000493852698519319, 0.00020669940550076778, 0.00019446647605418985, 0.00018635376251510978, 0.0001802973904230242, 0.00017557303303437148, 0.00017216496489514356, 0.000169687527482979, 0.00016762006221450012, 0.00016765824606495197, 0.00016963890005474897, 0.00017221453990142542, 0.00017570081203544013, 0.00018021324848021864, 0.00018621259569111154, 0.00019466109578777626, 0.0002066120810143188, 0.0004943911753777937, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }