import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 5.919383093525177, 29.54214028776981, 27.109946043165458, 24.5283273381295, 22.2170143884892, 20.302913669064754, 18.821115107913666, 17.838233812949642, 17.42577158273379, 17.31239748201441, 17.516856115107917, 18.307014388489208, 19.585881294964032, 21.308003597122294, 23.429298561151082, 25.820899280575528, 28.125287769784197, 5.636125899280573, 0.0], '_alpha3.yoda' : [0.0, 5.913993, 29.54629, 27.11405, 24.52281, 22.22594, 20.29922, 18.83135, 17.84475, 17.43144, 17.32184, 17.51713, 18.29918, 19.57707, 21.30865, 23.41911, 25.83033, 28.11919, 5.623172, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.5003001337694174, 2.4967838118747903, 2.291225021865581, 2.0730389347347646, 1.8776935348223704, 1.715921882528641, 1.590687585111181, 1.5076191430746655, 1.472757704247904, 1.463177858879779, 1.480456089489722, 1.547236312767443, 1.6553217578908603, 1.8008681247650764, 1.9801537506850717, 2.182282525443974, 2.3770392757899717, 0.47636066043014574, 0.0], [0.0, 0.5003001337694174, 2.4967838118747903, 2.291225021865581, 2.0730389347347646, 1.8776935348223704, 1.715921882528641, 1.590687585111181, 1.5076191430746655, 1.472757704247904, 1.463177858879779, 1.480456089489722, 1.547236312767443, 1.6553217578908603, 1.8008681247650764, 1.9801537506850717, 2.182282525443974, 2.3770392757899717, 0.47636066043014574, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.002065646, 0.004617075, 0.004422956, 0.004206303, 0.004004474, 0.003826971, 0.003686007, 0.003588151, 0.003546354, 0.003535188, 0.00355506, 0.003633551, 0.003758282, 0.00392097, 0.004110557, 0.004316984, 0.004504192, 0.002014216, 0.0], [0.0, 0.002065646, 0.004617075, 0.004422956, 0.004206303, 0.004004474, 0.003826971, 0.003686007, 0.003588151, 0.003546354, 0.003535188, 0.00355506, 0.003633551, 0.003758282, 0.00392097, 0.004110557, 0.004316984, 0.004504192, 0.002014216, 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, 0.9990894163395045, 1.0001404675554908, 1.0001513819624726, 0.9997750626019686, 1.0004017466683293, 0.9998180719710992, 1.0005437983896093, 1.0003652932862461, 1.000325289312975, 1.0005454194310985, 1.0000156355050407, 0.9995720553705287, 0.9995501200670353, 1.0000303361539602, 0.9995651358863993, 1.00036523590143, 0.9997831926260058, 0.9977016306037049, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451896521390256, 0.08451600959015272, 0.08451603032397807, 0.08451611502722435, 0.08451601560807456, 0.08451604092387811, 0.0845161179872041, 0.08451616672835689, 0.08451606847109004, 0.08451618907201341, 0.0845160843795971, 0.08451603740150494, 0.08451607221353274, 0.08451604189743467, 0.08451613459604088, 0.08451613174780691, 0.08451608727515646, 0.08451916599147494, 1.0], [1.0, 0.08451896521390256, 0.08451600959015272, 0.08451603032397807, 0.08451611502722435, 0.08451601560807456, 0.08451604092387811, 0.0845161179872041, 0.08451616672835689, 0.08451606847109004, 0.08451618907201341, 0.0845160843795971, 0.08451603740150494, 0.08451607221353274, 0.08451604189743467, 0.08451613459604088, 0.08451613174780691, 0.08451608727515646, 0.08451916599147494, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00034896305364311934, 0.00015628776232950965, 0.0001631488308002386, 0.00017148755975142523, 0.00018024357053460558, 0.0001884936843242898, 0.0001958442408361954, 0.00020114945445973392, 0.00020351202144264766, 0.00020419979403041394, 0.00020295080216671052, 0.0001984786226138898, 0.00019188730613650448, 0.0001840139542931905, 0.00017544515851686035, 0.00016718952942307354, 0.00016014741029028625, 0.000357375977044286, 1.0], [1.0, 0.00034896305364311934, 0.00015628776232950965, 0.0001631488308002386, 0.00017148755975142523, 0.00018024357053460558, 0.0001884936843242898, 0.0001958442408361954, 0.00020114945445973392, 0.00020351202144264766, 0.00020419979403041394, 0.00020295080216671052, 0.0001984786226138898, 0.00019188730613650448, 0.0001840139542931905, 0.00017544515851686035, 0.00016718952942307354, 0.00016014741029028625, 0.000357375977044286, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }