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, 5.6347535971223, 28.126187050359736, 25.826816546762583, 23.436816546762593, 21.31543165467625, 19.58692446043166, 18.314172661870504, 17.517744604316547, 17.31330575539566, 17.426537769784197, 17.838483812949644, 18.826510791366903, 20.306420863309356, 22.22136690647481, 24.530557553956843, 27.11746402877697, 29.545863309352544, 5.917652877697839, 0.0], '_alpha1.yoda' : [0.0, 5.624269, 28.11951, 25.83894, 23.42429, 21.31229, 19.58093, 18.30537, 17.51944, 17.32073, 17.43359, 17.84697, 18.83577, 20.30453, 22.23364, 24.53022, 27.11795, 29.54797, 5.91427, 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.4762427932540195, 2.377115482835468, 2.182782007217047, 1.9807883110551132, 1.8014949094294923, 1.6554098897586078, 1.5478418729111458, 1.480532344630724, 1.4632541301663158, 1.4728238155729494, 1.507639097482674, 1.5911421314385452, 1.7162183015359649, 1.8780613088499478, 2.0732253971614942, 2.2918595519781473, 2.4970960309021435, 0.500154535924041, 0.0], [0.0, 0.4762427932540195, 2.377115482835468, 2.182782007217047, 1.9807883110551132, 1.8014949094294923, 1.6554098897586078, 1.5478418729111458, 1.480532344630724, 1.4632541301663158, 1.4728238155729494, 1.507639097482674, 1.5911421314385452, 1.7162183015359649, 1.8780613088499478, 2.0732253971614942, 2.2918595519781473, 2.4970960309021435, 0.500154535924041, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.002014595, 0.004504624, 0.004318093, 0.004111382, 0.003921658, 0.003758991, 0.003634493, 0.003555615, 0.003535394, 0.003546893, 0.003588698, 0.003686773, 0.003827817, 0.00400553, 0.004207319, 0.004423674, 0.004617624, 0.002065881, 0.0], [0.0, 0.002014595, 0.004504624, 0.004318093, 0.004111382, 0.003921658, 0.003758991, 0.003634493, 0.003555615, 0.003535394, 0.003546893, 0.003588698, 0.003686773, 0.003827817, 0.00400553, 0.004207319, 0.004423674, 0.004617624, 0.002065881, 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.9981392980293486, 0.9997626037845876, 1.0004694133795184, 0.9994655184189543, 0.9998526112570861, 0.9996939560141883, 0.9995193524690945, 1.0000967816189668, 1.0004288172755238, 1.0004046833805411, 1.0004757235614494, 1.0004918175617195, 0.9999068834768036, 1.0005523104666263, 0.9999862394502815, 1.0000179209686613, 1.0000713023892853, 0.999428341309003, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451883210957785, 0.08451609450578067, 0.08451610763815415, 0.08451609915121883, 0.08451599473165135, 0.08451607056037656, 0.08451606859280632, 0.08451615079865395, 0.08451616062462798, 0.08451614629537443, 0.08451610088006586, 0.08451603959285861, 0.08451604116198108, 0.08451601185266072, 0.08451603240575661, 0.08451599860318919, 0.08451592714543239, 0.08451907306171996, 1.0], [1.0, 0.08451883210957785, 0.08451609450578067, 0.08451610763815415, 0.08451609915121883, 0.08451599473165135, 0.08451607056037656, 0.08451606859280632, 0.08451615079865395, 0.08451616062462798, 0.08451614629537443, 0.08451610088006586, 0.08451603959285861, 0.08451604116198108, 0.08451601185266072, 0.08451603240575661, 0.08451599860318919, 0.08451592714543239, 0.08451907306171996, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0003575302744433874, 0.00016015764923750606, 0.00016719416394899345, 0.0001754240808173207, 0.00018398210571258375, 0.00019191328417045208, 0.000198452480879297, 0.00020297219078784038, 0.00020420097986764894, 0.00020353400353281554, 0.00020117729946279546, 0.0001958287991256781, 0.0001885027906082794, 0.000180255787902628, 0.0001715133865484174, 0.00016313007718220298, 0.00015628665006848258, 0.000349104795887199, 1.0], [1.0, 0.0003575302744433874, 0.00016015764923750606, 0.00016719416394899345, 0.0001754240808173207, 0.00018398210571258375, 0.00019191328417045208, 0.000198452480879297, 0.00020297219078784038, 0.00020420097986764894, 0.00020353400353281554, 0.00020117729946279546, 0.0001958287991256781, 0.0001885027906082794, 0.000180255787902628, 0.0001715133865484174, 0.00016313007718220298, 0.00015628665006848258, 0.000349104795887199, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }