import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 1.8846258992805747, 11.706163669064757, 13.351697841726613, 14.650131294964032, 15.754282374100713, 16.688620503597125, 17.49535431654676, 18.24908273381295, 19.81005395683451, 19.804802158273407, 18.251492805755397, 17.50046762589928, 16.697516187050365, 15.755079136690641, 14.652733812949643, 13.34637589928057, 11.696244604316558, 1.8854046762589918, 0.0], '_alpha0.yoda' : [0.0, 1.884615, 11.70329, 13.3494, 14.64573, 15.75232, 16.69004, 17.50302, 18.24105, 19.81114, 19.81162, 18.24557, 17.49965, 16.69428, 15.75095, 14.65071, 13.35548, 11.7066, 1.885691, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.15929016513995828, 0.9893623163810588, 1.1284345235274016, 1.2381731794533777, 1.3314896521777495, 1.410457869115071, 1.478635506131149, 1.5423416408750574, 1.674264529646413, 1.673820574143097, 1.5425434971025591, 1.4790693742904963, 1.4112098073776633, 1.3315603480538496, 1.2383932694668418, 1.1279837967738626, 0.9885221620699632, 0.15935761315075642, 0.0], [0.0, 0.15929016513995828, 0.9893623163810588, 1.1284345235274016, 1.2381731794533777, 1.3314896521777495, 1.410457869115071, 1.478635506131149, 1.5423416408750574, 1.674264529646413, 1.673820574143097, 1.5425434971025591, 1.4790693742904963, 1.4112098073776633, 1.3315603480538496, 1.2383932694668418, 1.1279837967738626, 0.9885221620699632, 0.15935761315075642, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0009883893, 0.002463036, 0.002630556, 0.002755321, 0.002857518, 0.002941341, 0.003012126, 0.003074975, 0.003204583, 0.003204622, 0.003075357, 0.003011837, 0.002941714, 0.002857393, 0.002755789, 0.002631155, 0.002463384, 0.0009886713, 0.0], [0.0, 0.0009883893, 0.002463036, 0.002630556, 0.002755321, 0.002857518, 0.002941341, 0.003012126, 0.003074975, 0.003204583, 0.003204622, 0.003075357, 0.003011837, 0.002941714, 0.002857393, 0.002755789, 0.002631155, 0.002463384, 0.0009886713, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 0.9999942167405325, 0.9997545165823752, 0.9998278989118947, 0.9996995730020833, 0.9998754386868208, 1.0000850577435425, 1.0004381553705368, 0.9995598280784783, 1.0000548228272301, 1.0003442519481947, 0.9996754892425277, 0.9999532797684748, 0.9998061875183043, 0.9997379171088373, 0.9998618815454182, 1.000682140289479, 1.000885360731907, 1.0001518632814554, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08452084055555255, 0.08451635773687265, 0.08451618190465841, 0.0845161831333893, 0.08451604589534684, 0.08451614492708105, 0.08451589372686695, 0.0845161186111189, 0.084515899517214, 0.08451589471919377, 0.08451601814269877, 0.08451599156708207, 0.08451615147839274, 0.08451625894743327, 0.08451619235533968, 0.08451611173597066, 0.08451620118351015, 0.08452170250630374, 1.0], [1.0, 0.08452084055555255, 0.08451635773687265, 0.08451618190465841, 0.0845161831333893, 0.08451604589534684, 0.08451614492708105, 0.08451589372686695, 0.0845161186111189, 0.084515899517214, 0.08451589471919377, 0.08451601814269877, 0.08451599156708207, 0.08451615147839274, 0.08451625894743327, 0.08451619235533968, 0.08451611173597066, 0.08451620118351015, 0.08452170250630374, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0005244485392975346, 0.00021040505409205336, 0.00019702033637841986, 0.00018807483322331306, 0.00018138039754178983, 0.0001762483004132075, 0.0001721671905296134, 0.0001685002498400925, 0.00016176548569643912, 0.00016181035156977202, 0.00016849892952483435, 0.0001721003726519127, 0.0001761767419205393, 0.00018136329086063837, 0.00018807336809493645, 0.00019714378044318617, 0.00021061324239840843, 0.0005243814828982579, 1.0], [1.0, 0.0005244485392975346, 0.00021040505409205336, 0.00019702033637841986, 0.00018807483322331306, 0.00018138039754178983, 0.0001762483004132075, 0.0001721671905296134, 0.0001685002498400925, 0.00016176548569643912, 0.00016181035156977202, 0.00016849892952483435, 0.0001721003726519127, 0.0001761767419205393, 0.00018136329086063837, 0.00018807336809493645, 0.00019714378044318617, 0.00021061324239840843, 0.0005243814828982579, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }