import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 381.3069166666663, 1008.165, 893.1766666666667, 797.18775, 717.46875, 653.3967500000001, 606.15475, 574.3360833333334, 558.4359166666667, 558.1606666666667, 574.67275, 606.3879166666667, 654.4949166666667, 718.4043333333333, 798.2605, 894.4175, 1008.5475, 381.1691666666663, 0.0], '_alpha3.yoda' : [0.0, 381.4135, 1007.979, 893.5575, 797.2499, 717.3099, 653.4703, 606.0735, 574.2151, 558.4108, 558.3301, 574.4414, 606.3987, 654.1539, 718.4064, 798.1094, 894.6572, 1008.856, 381.3981, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 32.22678966670774, 85.20608187734541, 75.48773355099931, 67.37526540867123, 60.637584604489874, 55.2226490873285, 51.22991476341403, 48.54072602808216, 47.196913152356814, 47.17371855410831, 48.56923752060901, 51.24976287208015, 55.31538363481417, 60.716686110345506, 67.46575262885443, 75.59252057357703, 85.23826898758561, 32.21520517464452, 0.0], [0.0, 32.22678966670774, 85.20608187734541, 75.48773355099931, 67.37526540867123, 60.637584604489874, 55.2226490873285, 51.22991476341403, 48.54072602808216, 47.196913152356814, 47.17371855410831, 48.56923752060901, 51.24976287208015, 55.31538363481417, 60.716686110345506, 67.46575262885443, 75.59252057357703, 85.23826898758561, 32.21520517464452, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.09719659, 0.1580079, 0.1487696, 0.1405239, 0.1332927, 0.1272231, 0.1225224, 0.1192588, 0.1176061, 0.1175976, 0.1192823, 0.1225553, 0.1272896, 0.1333946, 0.1405996, 0.1488611, 0.1580766, 0.09719463, 0.0], [0.0, 0.09719659, 0.1580079, 0.1487696, 0.1405239, 0.1332927, 0.1272231, 0.1225224, 0.1192588, 0.1176061, 0.1175976, 0.1192823, 0.1225553, 0.1272896, 0.1333946, 0.1405996, 0.1488611, 0.1580766, 0.09719463, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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], '_alpha3.yoda' : [1.0, 1.000279521111931, 0.9998155063903231, 1.000426380745877, 1.0000779615592437, 0.999778596628773, 1.0001125656042824, 0.9998659583216991, 0.9997893509796021, 0.999955023189023, 1.0003035565625669, 0.9995974230551216, 1.0000177828961245, 0.9994789620851398, 1.000002876745825, 0.9998107134199927, 1.0002679956508007, 1.000305885444166, 1.0006006082163879, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451666691081816, 0.08451600866658276, 0.08451601611215322, 0.08451618255382276, 0.08451599404781027, 0.08451625920595486, 0.0845162308196282, 0.08451623959679037, 0.08451625646516017, 0.08451637919208743, 0.08451633998759991, 0.08451646456578768, 0.08451613943242621, 0.08451603545962118, 0.08451596017697786, 0.08451592301534466, 0.08451586959224588, 0.08451681823156704, 1.0], [1.0, 0.08451666691081816, 0.08451600866658276, 0.08451601611215322, 0.08451618255382276, 0.08451599404781027, 0.08451625920595486, 0.0845162308196282, 0.08451623959679037, 0.08451625646516017, 0.08451637919208743, 0.08451633998759991, 0.08451646456578768, 0.08451613943242621, 0.08451603545962118, 0.08451596017697786, 0.08451592301534466, 0.08451586959224588, 0.08451681823156704, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00025490382091591593, 0.00015672821413161537, 0.00016656234488884243, 0.00017627453507658642, 0.00018578188945511561, 0.00019471033487693349, 0.00020213056154389617, 0.000207646365013052, 0.0002105990973897184, 0.00021068772312870488, 0.00020756561016682974, 0.00020210709453725648, 0.00019448523855354619, 0.00018568178644059777, 0.00017613247805697512, 0.0001664335726883698, 0.00015673689142058257, 0.00025499079804898553, 1.0], [1.0, 0.00025490382091591593, 0.00015672821413161537, 0.00016656234488884243, 0.00017627453507658642, 0.00018578188945511561, 0.00019471033487693349, 0.00020213056154389617, 0.000207646365013052, 0.0002105990973897184, 0.00021068772312870488, 0.00020756561016682974, 0.00020210709453725648, 0.00019448523855354619, 0.00018568178644059777, 0.00017613247805697512, 0.0001664335726883698, 0.00015673689142058257, 0.00025499079804898553, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }