import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha1.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha1.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 378.3089999999997, 1006.4858333333334, 892.6225000000001, 796.13325, 716.1585, 652.1745833333333, 604.3521666666667, 572.5751666666666, 556.1480833333334, 556.0065000000001, 571.9019166666667, 603.6975833333333, 652.15425, 715.4441666666668, 795.165, 891.3941666666667, 1005.4566666666667, 378.2061666666663, 0.0], '_alpha1.yoda' : [0.0, 378.5042, 1006.487, 892.2637, 796.4674, 716.3452, 652.2295, 604.2966, 572.6319, 556.3338, 556.0926, 572.0374, 603.7278, 651.4633, 715.3405, 795.3258, 891.5492, 1005.541, 378.2426, 0.0], } xerrs = { 'alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha1.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 31.97351334394695, 85.06402817224733, 75.44085707802283, 67.2859930528718, 60.526933857764696, 55.119283528241425, 51.07765058113861, 48.392011794877426, 47.00360506268523, 46.99157725947634, 48.3350574405139, 51.02218335630537, 55.117626742973776, 60.466513919321955, 67.20426470429125, 75.33706664790652, 84.97695766108207, 31.96481355421229, 0.0], [0.0, 31.97351334394695, 85.06402817224733, 75.44085707802283, 67.2859930528718, 60.526933857764696, 55.119283528241425, 51.07765058113861, 48.392011794877426, 47.00360506268523, 46.99157725947634, 48.3350574405139, 51.02218335630537, 55.117626742973776, 60.466513919321955, 67.20426470429125, 75.33706664790652, 84.97695766108207, 31.96481355421229, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.09667045, 0.1576386, 0.1484243, 0.1402305, 0.1329902, 0.1268991, 0.1221472, 0.1189039, 0.1171996, 0.1171742, 0.1188422, 0.1220897, 0.1268246, 0.1328969, 0.1401299, 0.1483649, 0.1575645, 0.09663704, 0.0], [0.0, 0.09667045, 0.1576386, 0.1484243, 0.1402305, 0.1329902, 0.1268991, 0.1221472, 0.1189039, 0.1171996, 0.1171742, 0.1188422, 0.1220897, 0.1268246, 0.1328969, 0.1401299, 0.1483649, 0.1575645, 0.09663704, 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.0005159803229644, 1.0000011591486218, 0.9995980383644821, 1.0004197161718846, 1.0002606964798992, 1.0000842054690111, 0.9999080558162418, 1.0000990845161233, 1.0003339338428598, 1.0001548543047607, 1.0002368995965654, 1.000050052654675, 0.9989405113897517, 0.9998551016676119, 1.0002022221803022, 1.000173922310837, 1.0000838756518597, 1.000096331938886, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451692490516212, 0.08451587231042065, 0.08451597072449196, 0.08451599409128033, 0.08451611460000083, 0.08451614787948487, 0.0845163687636959, 0.08451643489290477, 0.08451634820165893, 0.08451623723729189, 0.08451634105763281, 0.08451612987182247, 0.08451624250393794, 0.08451604854232317, 0.08451612521211478, 0.08451599692381487, 0.08451578320406522, 0.0845169020799828, 1.0], [1.0, 0.08451692490516212, 0.08451587231042065, 0.08451597072449196, 0.08451599409128033, 0.08451611460000083, 0.08451614787948487, 0.0845163687636959, 0.08451643489290477, 0.08451634820165893, 0.08451623723729189, 0.08451634105763281, 0.08451612987182247, 0.08451624250393794, 0.08451604854232317, 0.08451612521211478, 0.08451599692381487, 0.08451578320406522, 0.0845169020799828, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0002555330430944019, 0.00015662277081230649, 0.00016627891409862512, 0.00017613948418810545, 0.00018569939475688693, 0.00019457842001662385, 0.00020211262031823057, 0.0002076651362513976, 0.00021073452109652448, 0.00021074250031249633, 0.0002078017165822286, 0.00020223652267394919, 0.0001944702499447025, 0.00018575439732660247, 0.00017622744964881503, 0.00016644140779471857, 0.00015670938910014354, 0.0002555141838424107, 1.0], [1.0, 0.0002555330430944019, 0.00015662277081230649, 0.00016627891409862512, 0.00017613948418810545, 0.00018569939475688693, 0.00019457842001662385, 0.00020211262031823057, 0.0002076651362513976, 0.00021073452109652448, 0.00021074250031249633, 0.0002078017165822286, 0.00020223652267394919, 0.0001944702499447025, 0.00018575439732660247, 0.00017622744964881503, 0.00016644140779471857, 0.00015670938910014354, 0.0002555141838424107, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }