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.456083333333, 1008.335, 894.1075000000001, 797.4266666666666, 717.2786666666667, 653.2085833333333, 605.3073333333334, 573.474, 557.0519166666668, 556.85775, 572.7725833333334, 604.63, 653.1809166666667, 716.5855, 796.4339166666666, 892.8658333333334, 1007.2725, 380.34416666666635, 0.0], '_alpha2.yoda' : [0.0, 380.6555, 1008.349, 893.7386, 797.7566, 717.4938, 653.2534, 605.2634, 573.5324, 557.2206, 556.9728, 572.9311, 604.6714, 652.4789, 716.4713, 796.5846, 893.0087, 1007.347, 380.3684, 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.15498492544436, 85.22030274529655, 75.56637994358191, 67.39530460895132, 60.621606434229925, 55.20667607575494, 51.158380165043454, 48.467980553029946, 47.079992506843546, 47.06352090526165, 48.408648217257856, 51.10098933593274, 55.204392941141926, 60.56297801095613, 67.31152699699113, 75.46142318356374, 85.13041465892199, 32.14550253664316, 0.0], [0.0, 32.15498492544436, 85.22030274529655, 75.56637994358191, 67.39530460895132, 60.621606434229925, 55.20667607575494, 51.158380165043454, 48.467980553029946, 47.079992506843546, 47.06352090526165, 48.408648217257856, 51.10098933593274, 55.204392941141926, 60.56297801095613, 67.31152699699113, 75.46142318356374, 85.13041465892199, 32.14550253664316, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.09703592, 0.1579326, 0.1486866, 0.1404758, 0.1332219, 0.1271181, 0.1223598, 0.1191092, 0.1174032, 0.1173771, 0.1190468, 0.1222999, 0.1270427, 0.1331269, 0.1403726, 0.1486258, 0.1578542, 0.09699932, 0.0], [0.0, 0.09703592, 0.1579326, 0.1486866, 0.1404758, 0.1332219, 0.1271181, 0.1223598, 0.1191092, 0.1174032, 0.1173771, 0.1190468, 0.1222999, 0.1270427, 0.1331269, 0.1403726, 0.1486258, 0.1578542, 0.09699932, 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.000524151604884, 1.0000138842745714, 0.9995874097913282, 1.0004137475546342, 1.0002999299203097, 1.0000686100394427, 0.999927419790057, 1.0001018354798996, 1.0003028143845956, 1.0002066057265073, 1.0002767532372867, 1.000068471627276, 0.9989252339608308, 0.9998406331135643, 1.0001891975343844, 1.0001600091092446, 1.000073962110551, 1.0000637142237412, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451694251731039, 0.08451586302696677, 0.08451598934533253, 0.08451599053072967, 0.08451611521635002, 0.0845161522434908, 0.08451637267191561, 0.08451643937306651, 0.08451634596029162, 0.0845162357985709, 0.08451635016385856, 0.08451613273561143, 0.08451623666971582, 0.08451605287988123, 0.08451614828096678, 0.0845159713434703, 0.08451577369472708, 0.08451688064093665, 1.0], [1.0, 0.08451694251731039, 0.08451586302696677, 0.08451598934533253, 0.08451599053072967, 0.08451611521635002, 0.0845161522434908, 0.08451637267191561, 0.08451643937306651, 0.08451634596029162, 0.0845162357985709, 0.08451635016385856, 0.08451613273561143, 0.08451623666971582, 0.08451605287988123, 0.08451614828096678, 0.0845159713434703, 0.08451577369472708, 0.08451688064093665, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.00025505156639848726, 0.00015662711301303635, 0.00016629611092625887, 0.00017616140251141174, 0.00018573241641091606, 0.0001946056791711377, 0.00020214491591599197, 0.00020769764627515805, 0.00021075809361275868, 0.00021078471117623844, 0.0002078430488191139, 0.0002022722987612259, 0.00019449848695569415, 0.00018577950572541587, 0.00017625140901520706, 0.00016645927579638225, 0.00015671449384352298, 0.00025503038695216855, 1.0], [1.0, 0.00025505156639848726, 0.00015662711301303635, 0.00016629611092625887, 0.00017616140251141174, 0.00018573241641091606, 0.0001946056791711377, 0.00020214491591599197, 0.00020769764627515805, 0.00021075809361275868, 0.00021078471117623844, 0.0002078430488191139, 0.0002022722987612259, 0.00019449848695569415, 0.00018577950572541587, 0.00017625140901520706, 0.00016645927579638225, 0.00015671449384352298, 0.00025503038695216855, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }