import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha1.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha1.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha1.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 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, 0.0, 0.0, 0.12274814024390243, 0.15947807926829266, 0.16010067073170733, 0.1552037804878048, 0.1531521036585367, 0.1517327134146341, 0.15628121951219506, 0.1639685060975611, 0.18032695121951214, 0.2093405792682926, 0.26530646341463404, 0.4095551829268291, 1.2407914634146364, 448.0960365853657, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.1224067, 0.1593049, 0.1596753, 0.1561534, 0.1532024, 0.1524806, 0.1560134, 0.164236, 0.1812195, 0.2093189, 0.2649151, 0.410473, 1.240993, 448.1115, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha1.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.010392813756682195, 0.01349812570988848, 0.013551289119252652, 0.013134481080273652, 0.012962527646731049, 0.012840806882204856, 0.013230267146531471, 0.013875270977733471, 0.01525904735476287, 0.017712018751934726, 0.0224429468668668, 0.0346335559035896, 0.1048847399311945, 37.871020522549856, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.010392813756682195, 0.01349812570988848, 0.013551289119252652, 0.013134481080273652, 0.012962527646731049, 0.012840806882204856, 0.013230267146531471, 0.013875270977733471, 0.01525904735476287, 0.017712018751934726, 0.0224429468668668, 0.0346335559035896, 0.1048847399311945, 37.871020522549856, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.0003325177, 0.0003793384, 0.000379779, 0.0003755674, 0.0003720016, 0.0003711244, 0.0003753989, 0.0003851645, 0.0004045895, 0.0004348268, 0.0004891764, 0.0006089118, 0.001058758, 0.02011894, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0003325177, 0.0003793384, 0.000379779, 0.0003755674, 0.0003720016, 0.0003711244, 0.0003753989, 0.0003851645, 0.0004045895, 0.0004348268, 0.0004891764, 0.0006089118, 0.001058758, 0.02011894, 0.0, 0.0, 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.0, 1.0, 0.9972183672744532, 0.998914087321046, 0.9973431046243387, 1.0061185333837264, 1.0003284077741135, 1.0049289739077043, 0.998286297528065, 1.0016313736631821, 1.0049496138788558, 0.9998964402010906, 0.9985248628714244, 1.002241009542626, 1.0001624258316615, 1.0000345091528864, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08466778996432464, 0.08463937973055441, 0.0846423007306544, 0.08462732698257758, 0.08463826050755338, 0.08462780763114201, 0.08465679489722101, 0.08462156122516416, 0.08461878411168844, 0.0846086258758024, 0.08459253716631793, 0.08456383253676762, 0.08453051380814108, 0.0845154106051441, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08466778996432464, 0.08463937973055441, 0.0846423007306544, 0.08462732698257758, 0.08463826050755338, 0.08462780763114201, 0.08465679489722101, 0.08462156122516416, 0.08461878411168844, 0.0846086258758024, 0.08459253716631793, 0.08456383253676762, 0.08453051380814108, 0.0845154106051441, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.002708942875544039, 0.002378624082635411, 0.002372126226981423, 0.002419834096950431, 0.002428968268234849, 0.0024459089384755335, 0.0024020730140943557, 0.0023490151198354366, 0.0022436440990315025, 0.0020771261908219063, 0.0018438163688288703, 0.0014867637509761117, 0.0008532924598677657, 4.48987233926743e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002708942875544039, 0.002378624082635411, 0.002372126226981423, 0.002419834096950431, 0.002428968268234849, 0.0024459089384755335, 0.0024020730140943557, 0.0023490151198354366, 0.0022436440990315025, 0.0020771261908219063, 0.0018438163688288703, 0.0014867637509761117, 0.0008532924598677657, 4.48987233926743e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }