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.3375100609756097, 0.5176509146341463, 0.6027512195121952, 0.6886817073170729, 0.7969993902439031, 0.9347338414634143, 1.121800609756097, 1.3859725609756106, 1.7632496951219505, 2.3438524390243893, 3.304856707317072, 5.181749999999998, 10.51564939024392, 422.7704268292681, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.3370989, 0.5200027, 0.6039508, 0.6895372, 0.7939491, 0.9325062, 1.121388, 1.380875, 1.760287, 2.339661, 3.299403, 5.180567, 10.50733, 422.8111, 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.028546358681829656, 0.04376790659297325, 0.05095907765238143, 0.058226479461409617, 0.06737737280314264, 0.07901830891611085, 0.09482975270094832, 0.11715698219524515, 0.14904053143993304, 0.19811277295032692, 0.2793288456825378, 0.4379572905435797, 0.8887508361630332, 35.73064074825393, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.028546358681829656, 0.04376790659297325, 0.05095907765238143, 0.058226479461409617, 0.06737737280314264, 0.07901830891611085, 0.09482975270094832, 0.11715698219524515, 0.14904053143993304, 0.19811277295032692, 0.2793288456825378, 0.4379572905435797, 0.8887508361630332, 35.73064074825393, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.0005521998, 0.0006858361, 0.0007391258, 0.0007897624, 0.0008474497, 0.0009184245, 0.001007153, 0.001117622, 0.001261854, 0.001454769, 0.001727568, 0.002164742, 0.003082931, 0.01955648, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005521998, 0.0006858361, 0.0007391258, 0.0007897624, 0.0008474497, 0.0009184245, 0.001007153, 0.001117622, 0.001261854, 0.001454769, 0.001727568, 0.002164742, 0.003082931, 0.01955648, 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.9987817815729071, 1.004543187888533, 1.0019901751319154, 1.0012422178109823, 0.9961727822113269, 0.9976168173606224, 0.999632189755908, 0.9963220332644809, 0.9983197529367809, 0.9982117308433742, 0.9983497900816706, 0.9997716987504225, 0.999208856254599, 1.000096206281591, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08457928216810275, 0.08455100793921431, 0.08454413031901033, 0.0845477364111282, 0.08453880094252439, 0.08453562437880735, 0.08453351859165623, 0.08453052065675548, 0.08452604974341144, 0.08452442212308803, 0.08452071312625858, 0.08451918570822209, 0.08451697115230825, 0.08451546863443081, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457928216810275, 0.08455100793921431, 0.08454413031901033, 0.0845477364111282, 0.08453880094252439, 0.08453562437880735, 0.08453351859165623, 0.08453052065675548, 0.08452604974341144, 0.08452442212308803, 0.08452071312625858, 0.08451918570822209, 0.08451697115230825, 0.08451546863443081, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.0016360987829631098, 0.0013249007789056452, 0.0012262535123498753, 0.0011467741797247838, 0.0010633003116108505, 0.0009825518872432386, 0.0008978003677667603, 0.0008063810435130737, 0.0007156411275674301, 0.0006206743119910469, 0.0005227361283698329, 0.0004177627249481354, 0.000293175522080476, 4.625791862186639e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0016360987829631098, 0.0013249007789056452, 0.0012262535123498753, 0.0011467741797247838, 0.0010633003116108505, 0.0009825518872432386, 0.0008978003677667603, 0.0008063810435130737, 0.0007156411275674301, 0.0006206743119910469, 0.0005227361283698329, 0.0004177627249481354, 0.000293175522080476, 4.625791862186639e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }