import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 380.5041666666663, 1008.5758333333333, 894.2400000000001, 798.302, 718.4467500000001, 654.6341666666667, 606.40425, 574.69525, 558.2276666666667, 558.5628333333334, 574.3421666666667, 606.1675, 653.3786666666667, 717.4899166666667, 797.1941666666668, 893.2216666666667, 1008.0841666666668, 380.55274999999966, 0.0], '_alpha2.yoda' : [0.0, 380.7064, 1008.769, 894.6216, 798.1678, 718.4208, 654.2226, 606.4447, 574.52, 558.3952, 558.3494, 574.3103, 606.0972, 653.4607, 717.4004, 797.3152, 893.5685, 1007.872, 380.6727, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 32.15902327151395, 85.24059087860275, 75.57753101580154, 67.46927284162605, 60.720231618281716, 55.32716456577989, 51.25111787398723, 48.57115341892186, 47.17941523823947, 47.20763827084671, 48.54125536306434, 51.231060185963145, 55.22107085765964, 60.63938832695022, 67.37580652990773, 75.4915374212383, 85.19923545562027, 32.163061110534834, 0.0], [0.0, 32.15902327151395, 85.24059087860275, 75.57753101580154, 67.46927284162605, 60.720231618281716, 55.32716456577989, 51.25111787398723, 48.57115341892186, 47.17941523823947, 47.20763827084671, 48.54125536306434, 51.231060185963145, 55.22107085765964, 60.63938832695022, 67.37580652990773, 75.4915374212383, 85.19923545562027, 32.163061110534834, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.09710208, 0.1580627, 0.1488515, 0.1405985, 0.1333899, 0.1272906, 0.1225544, 0.1192851, 0.1175992, 0.1175944, 0.1192633, 0.1225193, 0.1272164, 0.1332951, 0.1405233, 0.1487638, 0.1579924, 0.09709778, 0.0], [0.0, 0.09710208, 0.1580627, 0.1488515, 0.1405985, 0.1333899, 0.1272906, 0.1225544, 0.1192851, 0.1175992, 0.1175944, 0.1192633, 0.1225193, 0.1272164, 0.1332951, 0.1405233, 0.1487638, 0.1579924, 0.09709778, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 1.0005314878286493, 1.0001915241871584, 1.0004267310789048, 0.9998318931933028, 0.9999638804128489, 0.9993713028014375, 1.000066704677614, 0.9996950557708629, 1.00030011649966, 0.999617888408257, 0.9999445162334996, 0.9998840254550104, 1.0001255525126826, 0.9998752363418812, 1.0001518241582716, 1.0003882948055074, 0.9997895347693354, 1.0003151994040258, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845168754740241, 0.08451579748533476, 0.08451593645531572, 0.08451597621154155, 0.08451598064613934, 0.084516157852714, 0.08451642262399583, 0.08451636483670583, 0.08451644025449498, 0.08451625395324973, 0.08451626605231725, 0.08451634273688896, 0.08451618284291443, 0.08451601467609506, 0.08451618105991458, 0.08451601683931197, 0.08451599407353083, 0.0845166960704787, 1.0], [1.0, 0.0845168754740241, 0.08451579748533476, 0.08451593645531572, 0.08451597621154155, 0.08451598064613934, 0.084516157852714, 0.08451642262399583, 0.08451636483670583, 0.08451644025449498, 0.08451625395324973, 0.08451626605231725, 0.08451634273688896, 0.08451618284291443, 0.08451601467609506, 0.08451618105991458, 0.08451601683931197, 0.08451599407353083, 0.0845166960704787, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0002551932107620374, 0.0001567187064929013, 0.00016645587314367504, 0.00017612194382577017, 0.0001856642820083743, 0.00019444539634732376, 0.00020210016667924076, 0.00020756235587470056, 0.0002106653020302947, 0.00021053029844150627, 0.00020765200070921717, 0.0002021211958740777, 0.00019470546941640783, 0.00018577975369920993, 0.00017627236359188945, 0.00016654746022357273, 0.0001567254056994249, 0.00025514933212281366, 1.0], [1.0, 0.0002551932107620374, 0.0001567187064929013, 0.00016645587314367504, 0.00017612194382577017, 0.0001856642820083743, 0.00019444539634732376, 0.00020210016667924076, 0.00020756235587470056, 0.0002106653020302947, 0.00021053029844150627, 0.00020765200070921717, 0.0002021211958740777, 0.00019470546941640783, 0.00018577975369920993, 0.00017627236359188945, 0.00016654746022357273, 0.0001567254056994249, 0.00025514933212281366, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }