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, 2.9516582733812937, 16.89498741007196, 19.069154676258986, 20.799532374100725, 22.21999999999999, 23.404784172661873, 24.334730215827335, 25.05874100719425, 25.660053956834503, 25.667787769784205, 25.047859712230217, 24.343723021582733, 23.40330935251799, 22.218705035971215, 20.804118705035975, 19.073309352517978, 16.900838129496417, 2.9497068345323725, 0.0], '_alpha1.yoda' : [0.0, 2.953099, 16.90455, 19.07628, 20.79807, 22.22452, 23.40314, 24.34157, 25.05269, 25.65934, 25.65689, 25.04809, 24.33873, 23.41038, 22.22587, 20.78939, 19.07566, 16.89678, 2.955623, 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.24947398208984634, 1.4278976225614146, 1.6116518999757061, 1.7578945682194709, 1.8779476252725764, 1.9780853220546608, 2.056672567421308, 2.117863606413266, 2.1686859136826064, 2.1693391381858667, 2.116946968800305, 2.0574336824030737, 1.9779569444860183, 1.8778399640251928, 1.7582819730094228, 1.6120027110837554, 1.4283933289537873, 0.2493106795073411, 0.0], [0.0, 0.24947398208984634, 1.4278976225614146, 1.6116518999757061, 1.7578945682194709, 1.8779476252725764, 1.9780853220546608, 2.056672567421308, 2.117863606413266, 2.1686859136826064, 2.1693391381858667, 2.116946968800305, 2.0574336824030737, 1.9779569444860183, 1.8778399640251928, 1.7582819730094228, 1.6120027110837554, 1.4283933289537873, 0.2493106795073411, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001459801, 0.003492662, 0.003710236, 0.003874059, 0.004004708, 0.004109526, 0.004191109, 0.004251889, 0.00430306, 0.004302855, 0.004251498, 0.004190865, 0.004110162, 0.00400483, 0.00387325, 0.003710175, 0.003491858, 0.001460425, 0.0], [0.0, 0.001459801, 0.003492662, 0.003710236, 0.003874059, 0.004004708, 0.004109526, 0.004191109, 0.004251889, 0.00430306, 0.004302855, 0.004251498, 0.004190865, 0.004110162, 0.00400483, 0.00387325, 0.003710175, 0.003491858, 0.001460425, 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.0004881075264367, 1.0005660016012998, 1.0003736570321016, 0.9999296919721836, 1.0002034203420345, 0.9999297505736544, 1.0002810708856027, 0.9997585270867154, 0.9999721763315189, 0.9995754301117826, 1.0000091939100757, 0.999794894906654, 1.0003021216946504, 1.0003224744204122, 0.9992920293695301, 1.000123242770228, 0.9997598859023841, 1.0020056791401664, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451994065155097, 0.08451605129401708, 0.084516169035128, 0.08451606202495089, 0.08451609474674064, 0.08451628126377587, 0.08451593870901622, 0.08451596214691062, 0.08451603092225694, 0.08451601507861871, 0.08451608213721569, 0.08451598305563154, 0.08451612183100111, 0.08451617504193171, 0.08451605174622476, 0.08451615193201623, 0.08451612387558842, 0.08452049423646035, 1.0], [1.0, 0.08451994065155097, 0.08451605129401708, 0.084516169035128, 0.08451606202495089, 0.08451609474674064, 0.08451628126377587, 0.08451593870901622, 0.08451596214691062, 0.08451603092225694, 0.08451601507861871, 0.08451608213721569, 0.08451598305563154, 0.08451612183100111, 0.08451617504193171, 0.08451605174622476, 0.08451615193201623, 0.08451612387558842, 0.08452049423646035, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0004945697857928907, 0.00020672770658105652, 0.0001945674080990715, 0.00018625702397155437, 0.0001802298829882989, 0.00017558487058385956, 0.000172227469251913, 0.00016967688036598894, 0.00016769489289611913, 0.00016763637905192855, 0.00016973498130557258, 0.00017215382364827475, 0.000175623111163028, 0.00018024587812459533, 0.00018617707651621967, 0.0001945218279338713, 0.00020660857013391469, 0.000495108524990595, 1.0], [1.0, 0.0004945697857928907, 0.00020672770658105652, 0.0001945674080990715, 0.00018625702397155437, 0.0001802298829882989, 0.00017558487058385956, 0.000172227469251913, 0.00016967688036598894, 0.00016769489289611913, 0.00016763637905192855, 0.00016973498130557258, 0.00017215382364827475, 0.000175623111163028, 0.00018024587812459533, 0.00018617707651621967, 0.0001945218279338713, 0.00020660857013391469, 0.000495108524990595, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }