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, 3.9495755395683436, 21.186744604316566, 19.592985611510784, 17.781588129496406, 16.148005395683448, 14.801676258992808, 13.799338129496403, 13.152665467625901, 12.938643884892072, 12.927226618705054, 13.142034172661871, 13.778284172661868, 14.788140287769787, 16.130429856115104, 17.765669064748206, 19.605035971223014, 21.291079136690666, 4.0253003597122285, 0.0], '_alpha1.yoda' : [0.0, 3.95335, 21.18406, 19.60594, 17.78084, 16.14392, 14.80043, 13.79659, 13.14704, 12.9406, 12.93163, 13.13383, 13.7762, 14.78249, 16.13152, 17.76156, 19.61435, 21.29743, 4.029532, 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.3338104785476633, 1.7906183427743183, 1.6559192430227605, 1.5028317860473916, 1.3647648643377739, 1.2509811893596448, 1.1662686540269216, 1.1116143929739017, 1.0935244403159168, 1.0925611343567094, 1.1107164340383255, 1.1644907754505462, 1.2498363072778402, 1.3632801671103922, 1.5014821102860099, 1.6569390416468408, 1.7994323429617038, 0.34021294825893234, 0.0], [0.0, 0.3338104785476633, 1.7906183427743183, 1.6559192430227605, 1.5028317860473916, 1.3647648643377739, 1.2509811893596448, 1.1662686540269216, 1.1116143929739017, 1.0935244403159168, 1.0925611343567094, 1.1107164340383255, 1.1644907754505462, 1.2498363072778402, 1.3632801671103922, 1.5014821102860099, 1.6569390416468408, 1.7994323429617038, 0.34021294825893234, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001452445, 0.003362186, 0.003234529, 0.003080301, 0.002935091, 0.00281031, 0.002713332, 0.00264869, 0.002627813, 0.002626901, 0.002647359, 0.002711327, 0.002808606, 0.002933964, 0.003078631, 0.003235222, 0.00337117, 0.001466373, 0.0], [0.0, 0.001452445, 0.003362186, 0.003234529, 0.003080301, 0.002935091, 0.00281031, 0.002713332, 0.00264869, 0.002627813, 0.002626901, 0.002647359, 0.002711327, 0.002808606, 0.002933964, 0.003078631, 0.003235222, 0.00337117, 0.001466373, 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, 1.0009556622968323, 0.9998732884939756, 1.0006611748074579, 0.9999579267334866, 0.9997470030766439, 0.9999158028475288, 0.9998008506298915, 0.9995722944797959, 1.0001511839359156, 1.0003406284599803, 0.9993757303813029, 0.9998487349632399, 0.9996179176245399, 1.0000675830647179, 0.9997687075711458, 1.0004750834831755, 1.000298287525426, 1.0010512607531412, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451806408142433, 0.08451597336994847, 0.08451592196596705, 0.08451617342066699, 0.08451600249666696, 0.08451618367207613, 0.08451627484466051, 0.08451628270406787, 0.08451615563766933, 0.08451628230728374, 0.08451632520853154, 0.08451638541184006, 0.08451612460773654, 0.08451604695417139, 0.08451593378294703, 0.08451599089534731, 0.08451578858023985, 0.0845186490091523, 1.0], [1.0, 0.08451806408142433, 0.08451597336994847, 0.08451592196596705, 0.08451617342066699, 0.08451600249666696, 0.08451618367207613, 0.08451627484466051, 0.08451628270406787, 0.08451615563766933, 0.08451628230728374, 0.08451632520853154, 0.08451638541184006, 0.08451612460773654, 0.08451604695417139, 0.08451593378294703, 0.08451599089534731, 0.08451578858023985, 0.0845186490091523, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.00036774711242989425, 0.00015869290269893526, 0.00016508607029751146, 0.00017322980251074108, 0.00018176182928354633, 0.00018986430663841785, 0.00019662769145428725, 0.0002013804735260325, 0.0002030980235160804, 0.0002032068499672625, 0.00020144210289051374, 0.0001967826302624582, 0.00018992286692889957, 0.0001818900070346063, 0.00017329102488511505, 0.0001650199471579025, 0.00015833720678772465, 0.00036428908875382206, 1.0], [1.0, 0.00036774711242989425, 0.00015869290269893526, 0.00016508607029751146, 0.00017322980251074108, 0.00018176182928354633, 0.00018986430663841785, 0.00019662769145428725, 0.0002013804735260325, 0.0002030980235160804, 0.0002032068499672625, 0.00020144210289051374, 0.0001967826302624582, 0.00018992286692889957, 0.0001818900070346063, 0.00017329102488511505, 0.0001650199471579025, 0.00015833720678772465, 0.00036428908875382206, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }