import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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, 2.2957176258992793, 13.091762589928068, 14.398854316546757, 15.508239208633096, 16.414741007194237, 17.16104496402878, 17.722185251798557, 18.13269784172662, 18.757877697841703, 18.75669064748204, 18.122500000000002, 17.725010791366905, 17.15562769784173, 16.415947841726613, 15.502588129496406, 14.391679856115102, 13.078751798561163, 2.2944802158273374, 0.0], '_alpha2.yoda' : [0.0, 2.295002, 13.08483, 14.40086, 15.49744, 16.42289, 17.15428, 17.72143, 18.12973, 18.76182, 18.75921, 18.13126, 17.71759, 17.15773, 16.41483, 15.50018, 14.40285, 13.09003, 2.295399, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.19403357508278515, 1.106466283377272, 1.216936565657437, 1.3106942044792147, 1.3873081093169213, 1.4503817257022453, 1.4978058327132073, 1.5325022322895538, 1.5853383573098863, 1.5852413303864665, 1.5316403569757544, 1.4980457569799706, 1.449928229788889, 1.387410818039689, 1.3102179130827638, 1.2163302193163803, 1.1053677945759275, 0.19392901688205694, 0.0], [0.0, 0.19403357508278515, 1.106466283377272, 1.216936565657437, 1.3106942044792147, 1.3873081093169213, 1.4503817257022453, 1.4978058327132073, 1.5325022322895538, 1.5853383573098863, 1.5852413303864665, 1.5316403569757544, 1.4980457569799706, 1.449928229788889, 1.387410818039689, 1.3102179130827638, 1.2163302193163803, 1.1053677945759275, 0.19392901688205694, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001106907, 0.00264304, 0.00277277, 0.002876403, 0.002961042, 0.003026258, 0.003075878, 0.00311111, 0.003164879, 0.003164659, 0.003111241, 0.003075544, 0.003026562, 0.002960315, 0.002876657, 0.002772962, 0.002643565, 0.001107003, 0.0], [0.0, 0.001106907, 0.00264304, 0.00277277, 0.002876403, 0.002961042, 0.003026258, 0.003075878, 0.00311111, 0.003164879, 0.003164659, 0.003111241, 0.003075544, 0.003026562, 0.002960315, 0.002876657, 0.002772962, 0.002643565, 0.001107003, 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, 0.9996882779087438, 0.999470461683028, 1.000139294655613, 0.9993036470170589, 1.0004964435809367, 0.9996057953322214, 0.9999573838221515, 0.9998363265217053, 1.000210167814387, 1.0001343175384885, 1.0004833770175197, 0.9995813378364475, 1.0001225430042724, 0.9999319051365543, 0.9998446627442921, 1.0007761528880976, 1.0008623301070734, 1.0004004323795537, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451979149952218, 0.08451621970509254, 0.08451620794989, 0.08451599094174277, 0.08451599137073763, 0.08451593295993261, 0.08451586592918617, 0.08451595265449076, 0.0845158702304737, 0.08451604604351007, 0.08451595293010093, 0.0845159291925286, 0.08451618648563337, 0.08451603473745944, 0.08451607577639525, 0.084516208773193, 0.08451630641828776, 0.08451980345889823, 1.0], [1.0, 0.08451979149952218, 0.08451621970509254, 0.08451620794989, 0.08451599094174277, 0.08451599137073763, 0.08451593295993261, 0.08451586592918617, 0.08451595265449076, 0.0845158702304737, 0.08451604604351007, 0.08451595293010093, 0.0845159291925286, 0.08451618648563337, 0.08451603473745944, 0.08451607577639525, 0.084516208773193, 0.08451630641828776, 0.08451980345889823, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.000482161650680537, 0.00020188572637525366, 0.0001925687932555586, 0.0001854757952404274, 0.00018038920009168816, 0.00017634462273966018, 0.00017356087617286593, 0.00017157457909218408, 0.00016872265887329853, 0.00016872160763737042, 0.00017167835563526002, 0.00017351436544670346, 0.00017641802755959536, 0.0001803316523993437, 0.0001855597901441149, 0.00019267813262409067, 0.00020212670449872957, 0.00048246351934694715, 1.0], [1.0, 0.000482161650680537, 0.00020188572637525366, 0.0001925687932555586, 0.0001854757952404274, 0.00018038920009168816, 0.00017634462273966018, 0.00017356087617286593, 0.00017157457909218408, 0.00016872265887329853, 0.00016872160763737042, 0.00017167835563526002, 0.00017351436544670346, 0.00017641802755959536, 0.0001803316523993437, 0.0001855597901441149, 0.00019267813262409067, 0.00020212670449872957, 0.00048246351934694715, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }